Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles): menu command with & without icons aren't aligned #1180

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Nov 7, 2023

  • add a $slick-menu-icon-min-width SASS/CSS variable to align icon containers so that they are always aligned with and without icons. The issue only showed when the user has both with & without command icon as shown below. Adding a min-width helps so that the container, which uses flex doesn't shrink the icon span when no icon is provided

image

- add a `$slick-menu-icon-min-width` to align icon containers so that they are always aligned with and without icons
Copy link

codecov bot commented Nov 7, 2023

Codecov Report

Merging #1180 (70b1056) into master (e88b2c5) will not change coverage.
Report is 3 commits behind head on master.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #1180   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          245       245           
  Lines        17253     17253           
  Branches      6233      6233           
=========================================
  Hits         17253     17253           

@ghiscoding ghiscoding merged commit 35f040d into master Nov 7, 2023
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/menu-icon-min-width branch November 7, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants