Skip to content

Commit

Permalink
Add .is-disabled state to Dropdown component
Browse files Browse the repository at this point in the history
- As stated in issue jgthms#3682 (Feature Request)
- Add a disabled state to the .dropdown-item of the dropdown component.
  • Loading branch information
iamtiagogalvao committed Oct 3, 2023
1 parent 2d4cf93 commit 50a3055
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sass/components/dropdown.sass
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ $dropdown-divider-background-color: $border-light !default
padding-top: initial
top: auto


.dropdown-menu
display: none
+ltr-position(0, false)
Expand All @@ -61,6 +62,10 @@ $dropdown-divider-background-color: $border-light !default
line-height: 1.5
padding: 0.375rem 1rem
position: relative
&.is-disabled
color: $grey
cursor: default
pointer-events: none

a.dropdown-item,
button.dropdown-item
Expand Down

0 comments on commit 50a3055

Please sign in to comment.