File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
uswds-core/src/styles/settings Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
11
11
@include typeset ($theme-button-font-family , null, 1 );
12
12
@include set-text-and-bg (" primary" , $context : $button-context );
13
13
appearance : none ;
14
+ align-items : center ;
14
15
border : 0 ;
15
16
border-radius : radius ($theme-button-border-radius );
16
17
cursor : pointer ;
17
- display : inline-block ;
18
+ column-gap : units ($theme-button-column-gap );
19
+ display : inline-flex ;
18
20
font-weight : font-weight (" bold" );
19
21
margin-right : units (1 );
20
22
padding : units (1.5 ) units (2.5 );
@@ -52,11 +54,8 @@ $button-stroke: inset 0 0 0 units($theme-button-stroke-width);
52
54
@include button-disabled ;
53
55
}
54
56
55
- // @TODO: Use `:has()` selector once browser support improves.
56
- // https://developer.mozilla.org/en-US/docs/Web/CSS/:has#browser_compatibility
57
57
.usa-icon {
58
- margin-top : -0.1em ; // Similar pattern to _usa-breadcrumb.scss:14.
59
- vertical-align : middle ;
58
+ flex-shrink : 0 ; // Avoid shrinking on small screens.
60
59
}
61
60
62
61
@media (forced-colors : active ) {
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ $theme-breadcrumb-separator-color: "base" !default;
55
55
// Button
56
56
$theme-button-font-family : " ui" !default ;
57
57
$theme-button-border-radius : " md" !default ;
58
+ $theme-button-column-gap : 1 !default ;
58
59
$theme-button-small-width : 6 !default ;
59
60
$theme-button-stroke-width : 2px !default ;
60
61
You can’t perform that action at this time.
0 commit comments