Skip to content

Commit

Permalink
fix: center alligned ghost icon button (#18503)
Browse files Browse the repository at this point in the history
* fix: center alligned ghost icon button

* fix: expressive states as well

* fix: padding issue

* fix: expressive state
  • Loading branch information
riddhybansal authored Feb 20, 2025
1 parent 9883920 commit 62b5c1e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/web-components/src/components/button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,22 @@ $css--plex: true !default;
}
}

:host(#{$prefix}-button[kind='ghost']:hover) .#{$prefix}--btn--ghost,
:host(#{$prefix}-button[kind='ghost']) .#{$prefix}--btn--ghost:active {
outline: none;
:host(#{$prefix}-button[kind='ghost']) {
.#{$prefix}--btn--ghost {
&:hover,
&:active {
outline: none;
}

&.#{$prefix}--btn--icon-only {
padding-block-start: 0;

&.#{$prefix}--btn--selected,
&.#{$prefix}--btn--expressive {
padding: $spacing-03;
}
}
}
}

:host(#{$prefix}-button-set),
Expand Down

0 comments on commit 62b5c1e

Please sign in to comment.