Skip to content

Commit

Permalink
fix(button): add min-width (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps authored Sep 17, 2024
2 parents 5226786 + bc66cbb commit 7e92eae
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
cursor: pointer;
appearance: button;
text-decoration: none;
min-width: 6.25rem;

&:focus {
outline: none;
Expand Down
4 changes: 0 additions & 4 deletions packages/shoreline/src/themes/sunrise/components/drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
justify-content: space-between;
align-items: center;

& :where(button:not([data-sl-modal-dismiss])) {
min-width: 5rem;
}

& :where(button) {
margin-top: calc(var(--sl-element-space-top) * -1);
margin-bottom: calc(var(--sl-element-space-bottom) * -1);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[data-sl-icon-button] {
min-width: auto;
width: var(--sl-element-height);

& [data-sl-button-content] > [data-sl-icon]:first-child,
Expand Down
4 changes: 0 additions & 4 deletions packages/shoreline/src/themes/sunrise/components/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@
top: 0;
background: var(--sl-bg-base);

& :where(button:not([data-sl-modal-dismiss])) {
min-width: 5rem;
}

& :where(button) {
margin-top: calc(var(--sl-element-space-top) * -1);
margin-bottom: calc(var(--sl-element-space-bottom) * -1);
Expand Down
4 changes: 0 additions & 4 deletions packages/shoreline/src/themes/sunrise/components/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
}

[data-sl-page-header-container] {
:where([data-sl-button]):not([data-sl-icon-button]) {
min-width: 6.25rem;
}

[data-sl-page-header] {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 7e92eae

Please sign in to comment.