Skip to content

Commit

Permalink
[CheckableButton] Make se23 styles the default
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford committed Aug 16, 2023
1 parent bf6c7a6 commit dd585a8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions polaris-react/src/components/CheckableButton/CheckableButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
letter-spacing: initial;
display: flex;
align-items: center;
min-height: 36px;
min-width: 36px;
gap: calc(var(--p-space-3) + var(--p-space-025));
margin: 0;
cursor: pointer;
user-select: none;
Expand All @@ -19,13 +18,11 @@
border-radius: var(--p-border-radius-1);
width: auto;

#{$se23} & {
// Checkable Button has no opinion on its own height, it simply fills its
// container
min-height: auto;
min-width: auto;
height: 100%;
}
// Checkable Button has no opinion on its own height, it simply fills its
// container
min-height: auto;
min-width: auto;
height: 100%;

svg {
fill: var(--p-color-icon-on-color);
Expand Down Expand Up @@ -62,11 +59,6 @@
text-overflow: ellipsis;
// padding to fix the bottom of letters being cutoff by overflow: hidden
padding: var(--p-space-025) 0;
margin-left: calc(var(--p-space-5) - var(--p-border-width-2));

#{$se23} & {
margin-left: calc(var(--p-space-3) + var(--p-space-025));
// stylelint-disable-next-line polaris/typography/declaration-property-unit-disallowed-list -- se23
line-height: 18px;
}
// stylelint-disable-next-line polaris/typography/declaration-property-unit-disallowed-list -- se23
line-height: 18px;
}

0 comments on commit dd585a8

Please sign in to comment.