Skip to content

Commit

Permalink
fix: Add more css specificity to center text in full width button dro…
Browse files Browse the repository at this point in the history
…pdown main action (#3164)
  • Loading branch information
abdhalees authored Jan 2, 2025
1 parent 938e31b commit 5fd71dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/button-dropdown/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ const InternalButtonDropdown = React.forwardRef(
ref={mainActionRef}
{...mainActionProps}
{...mainActionIconProps}
fullWidth={canBeFullWidth}
className={clsx(
styles['trigger-button'],
hasNoText && styles['has-no-text'],
Expand Down
1 change: 0 additions & 1 deletion src/button-dropdown/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ $dropdown-trigger-icon-offset: 2px;

.main-action-full-width {
flex: 1 1 0;
text-align: center;
}

.main-action-trigger-full-width {
Expand Down

0 comments on commit 5fd71dd

Please sign in to comment.