Skip to content

Commit

Permalink
fix(style): adjust dialog button styling and menu layout
Browse files Browse the repository at this point in the history
- Update dialog button to 'normal' action style and adjust padding
- Improve menu layout for color square and list item text
- Refactor menu separator styling for better visual consistency
  • Loading branch information
mustakshif committed Nov 15, 2024
1 parent cdf40d8 commit 2ee45d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions style/components/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@
}

.b3-button {
@include button-action('primary');
padding: 0 8px;
@include button-action('normal');
padding: 4px 8px;
background-color: transparent;
}
}
Expand Down
9 changes: 7 additions & 2 deletions style/components/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@
background-color: var(--b3-menu-background);

&.hint--menu {

.color__square {
width: 20px;
height: 20px;
}

@media screen and (min-width: 1292px) {

Expand All @@ -150,14 +155,14 @@
column-rule: 1px solid var(--b3-border-color-trans);

.b3-list-item {

.b3-list-item__text {
width: max-content;
margin-right: 4px;
}
}

.b3-menu__separator:not(:nth-of-type(2n + 4)) {
button:nth-child(-n + 3 of .b3-menu__separator),
button:nth-child(5 of .b3-menu__separator) {
break-before: column;
margin-bottom: -5px;
background-color: transparent
Expand Down
2 changes: 1 addition & 1 deletion theme.css

Large diffs are not rendered by default.

0 comments on commit 2ee45d8

Please sign in to comment.