8000 Update _navbar.scss with disabled dropdown menu items colour by KavyaKadi3 · Pull Request #1797 · tabler/tabler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update _navbar.scss with disabled dropdown menu items colour #1797

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

Conversation

KavyaKadi3
Copy link
Contributor
@KavyaKadi3 KavyaKadi3 commented Dec 11, 2023

This PR aims to resolve the issue mentioned in #1473

Steps taken to resolve:

  1. Identified reason for discrepancy between horizontal and verticaldrop down menu items in the navbar - issue identified to be correlated to lack of distinction of colours for disabled items in vertical dropdown menu.

  2. Manually recreated issue by disabling all level 2 dropdown menu items in /src/…/navbar-menu.html (i.e. all components under Interface, Extra, Layout and Help are disabled).

Screenshot 1

NOTE: Issue (mentioned in #1473) persists as there is no clear visual distinction between disabled and enabled dropdown menu items; all are displayed in the same colour, even though the Layout’s dropdown items are disabled.

  1. Identified the .scss file corresponding to navbar-menu.html in /src/…/_navbar.scss and incorporated a separate .disabled class to address dropdown menu items that are disabled.

  2. Set disabled dropdown menu items to color gray-300 to match with horizontal dropdown menu disabled items, as opposed to ‘inherit’ which 8000 results in it being the same colour as the element’s parent.

Screenshot 2

NOTE: As can be seen in the screenshot above, the disabled dropdown menu items in the vertical layout are now rendered in the color gray-300 (as in the horizontal layout) so disabled and enabled menu items are now clearly distinguishable.

This change was tested on an OSX environment using the Google Chrome browser. All variables mentioned under the /src directory are being displayed as expected.

Copy link
changeset-bot bot commented Dec 11, 2023

🦋 Changeset detected

Latest commit: 5f67b26

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tabler/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
vercel bot commented Dec 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
tabler ✅ Ready (Inspect) Visit Preview Jan 1, 2024 10:01pm

@KavyaKadi3
Copy link
Contributor Author

@codecalm - Please review the proposed changes when possible, and let me know if there are any updates/changes to be made to further resolve the issue! As a first-time open source contributor, I look forward to hearing your input.

Comment on lines 43 to 48
&.disabled {
color: var(--#{$prefix}gray-300);
pointer-events: none;
background-color: transparent;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest properly aligning these with the rest. It breaks the flow and decreases readability.

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.

3 participants
0