-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Non-selectable options in dropdowns should not be interactable #3521
- Loading branch information
1 parent
5b0eaf0
commit 14f72af
Showing
6 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 23 additions & 7 deletions
30
src/main/resources/assets/admin/common/styles/api/ui/selector/dropdown-grid.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
.dropdown-grid { | ||
.slick-row .slick-cell { | ||
.compact-option-viewer(); | ||
.slick-row { | ||
.slick-cell { | ||
.compact-option-viewer(); | ||
|
||
&:first-child { | ||
flex-grow: 1; | ||
&:first-child { | ||
flex-grow: 1; | ||
} | ||
|
||
&:not(:first-child) { | ||
flex-basis: 50px; | ||
flex-shrink: 0; | ||
} | ||
} | ||
|
||
&:not(:first-child) { | ||
flex-basis: 50px; | ||
flex-shrink: 0; | ||
&.readonly { | ||
.slick-cell { | ||
pointer-events: none; | ||
|
||
> *:not(.toggle) { | ||
opacity: 0.5; | ||
} | ||
|
||
.toggle { | ||
pointer-events: all; | ||
} | ||
} | ||
} | ||
} | ||
} |