File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
packages/react/src/Button Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @primer/react " : patch
3
+ ---
4
+
5
+ Update specificity for ButtonBase to be at least 0,1,0
Original file line number Diff line number Diff line change 1
1
/* Base styles */
2
- : where ( .ButtonBase ) {
2
+ .ButtonBase {
3
3
display : flex;
4
4
min-width : max-content;
5
5
height : var (--control-medium-size );
54
54
}
55
55
56
56
/* Visuals */
57
- & .Visual {
57
+ & : where ( .Visual ) {
58
58
display : flex;
59
59
color : var (--fgColor-muted );
60
60
pointer-events : none;
61
61
}
62
62
63
63
/* mostly for CounterLabel */
64
- & .VisualWrap {
64
+ & : where ( .VisualWrap ) {
65
65
display : flex;
66
66
pointer-events : none;
67
67
}
68
68
69
69
/* IconButton */
70
70
71
- & .IconButton {
71
+ & : where ( .IconButton ) {
72
72
display : inline-grid;
73
73
width : var (--control-medium-size );
74
74
min-width : unset;
88
88
89
89
/* LinkButton */
90
90
91
- & [href ] {
91
+ & : where ( [href ]) {
92
92
display : inline-flex;
93
93
94
94
& : hover {
98
98
99
99
/* Button layout */
100
100
101
- & .ButtonContent {
101
+ & : where ( .ButtonContent ) {
102
102
flex : 1 0 auto;
103
103
display : grid;
104
104
grid-template-areas : 'leadingVisual text trailingVisual' ;
125
125
grid-area : leadingVisual;
126
126
}
127
127
128
- & .Label {
128
+ & : where ( .Label ) {
129
129
/* stylelint-disable-next-line primer/typography */
130
130
line-height : 1.4285714 ; /* temporary until we use Text component with --text-body-lineHeight-medium */
131
131
white-space : nowrap;
You can’t perform that action at this time.
0 commit comments