Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to a gap declaration on the containing flex element.

// 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;
}