Skip to content

Commit 11b1eec

Browse files
authored
Fixing the utilities build not matching properly for font_size (primer#2491)
1 parent 6d7988e commit 11b1eec

File tree

3 files changed

+48
-26
lines changed

3 files changed

+48
-26
lines changed

.changeset/tall-bugs-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Fixing the utilities build not matching properly for `font_size`

lib/primer/classify/utilities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class Utilities
1818

1919
# Replacements for some classnames that end up being a different argument key
2020
REPLACEMENT_KEYS = {
21+
"^f" => "font_size",
2122
"^anim" => "animation",
2223
"^v-align" => "vertical_align",
2324
"^d" => "display",
@@ -28,7 +29,6 @@ class Utilities
2829
"^color-bg" => "bg",
2930
"^color-border" => "border_color",
3031
"^color-fg" => "color",
31-
"^f" => "font_size",
3232
"^rounded" => "border_radius"
3333
}.freeze
3434

lib/primer/classify/utilities.yml

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
---
2-
:font_size:
3-
'00':
4-
- f00
5-
1:
6-
- f1
7-
2:
8-
- f2
9-
3:
10-
- f3
11-
4:
12-
- f4
13-
5:
14-
- f5
15-
6:
16-
- f6
17-
:small:
18-
- text-small
19-
:normal:
20-
- text-normal
212
:animation:
3+
:fade_in:
4+
- anim-fade-in
5+
:fade_out:
6+
- anim-fade-out
7+
:fade_up:
8+
- anim-fade-up
9+
:fade_down:
10+
- anim-fade-down
2211
:grow_x:
2312
- anim-grow-x
2413
:shrink_x:
@@ -221,12 +210,21 @@
221210
- float-lg-none
222211
- float-xl-none
223212
:w:
213+
:fit:
214+
- width-fit
215+
:full:
216+
- width-full
224217
:auto:
225218
- width-auto
226219
- width-sm-auto
227220
- width-md-auto
228221
- width-lg-auto
229222
- width-xl-auto
223+
:h:
224+
:fit:
225+
- height-fit
226+
:full:
227+
- height-full
230228
:m:
231229
0:
232230
- m-0
@@ -1363,6 +1361,12 @@
13631361
- d-md-block
13641362
- d-lg-block
13651363
- d-xl-block
1364+
:flex:
1365+
- d-flex
1366+
- d-sm-flex
1367+
- d-md-flex
1368+
- d-lg-flex
1369+
- d-xl-flex
13661370
:inline:
13671371
- d-inline
13681372
- d-sm-inline
@@ -1399,12 +1403,6 @@
13991403
- d-md-table-cell
14001404
- d-lg-table-cell
14011405
- d-xl-table-cell
1402-
:flex:
1403-
-
1404-
- d-sm-flex
1405-
- d-md-flex
1406-
- d-lg-flex
1407-
- d-xl-flex
14081406
:visibility:
14091407
:hidden:
14101408
- v-hidden
@@ -1507,6 +1505,25 @@
15071505
- col-md-12
15081506
- col-lg-12
15091507
- col-xl-12
1508+
:font_size:
1509+
'00':
1510+
- f00
1511+
1:
1512+
- f1
1513+
2:
1514+
- f2
1515+
3:
1516+
- f3
1517+
4:
1518+
- f4
1519+
5:
1520+
- f5
1521+
6:
1522+
- f6
1523+
:small:
1524+
- text-small
1525+
:normal:
1526+
- text-normal
15101527
:top:
15111528
0:
15121529
- top-0

0 commit comments

Comments
 (0)