Skip to content

Conversation

@iamtiagogalvao
Copy link

This is an improvement.

Proposed solution

Add a .is-disabled class to the .dropdown-item element

.dropdown-item
  color: $dropdown-item-color
  display: block
  font-size: 0.875rem
  line-height: 1.5
  padding: 0.375rem 1rem
  position: relative
  &.is-disabled
    color: $grey
    cursor: default
    pointer-events: none

Tradeoffs

None

Testing Done

Yes, I created a test environment where I used a Dropdown component and added a .is-disabled class to a .dropdown-item element. The results can be seen in the screenshot and GIF below:

A dropdown with a disabled item:
image

A GIF Showing the disabled behavior on :hover
gif

Changelog updated?

No.

- As stated in issue jgthms#3682 (Feature Request)
- Add a disabled state to the .dropdown-item of the dropdown component.
Copy link
Author

@iamtiagogalvao iamtiagogalvao left a comment

Choose a reason for hiding this comment

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

Add MR feedback

@iamtiagogalvao iamtiagogalvao requested a review from jgthms October 4, 2025 07:32
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