Skip to content

Commit

Permalink
fix: display of menu items with checkboxes (#3019)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald authored Mar 26, 2024
1 parent 0983219 commit 1fd134a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Menu/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@
margin-left: calc(#{$menu-item-icon-margin-left} * -1);
}
}

&.pgn__form-checkbox {
> input {
flex-shrink: 0; // When the menu item text is long, don't squish the checkbox, if present
}

> div {
overflow: hidden; // Ensure text gets truncated properly if needed
}
}
}
}

Expand Down

0 comments on commit 1fd134a

Please sign in to comment.