-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(go-dropdown-menu): prefix and suffix slots and generalise menuit…
…em styles
- Loading branch information
1 parent
226f75a
commit 8b30caa
Showing
4 changed files
with
28 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
@import '../../global/scss/dropdown/mixins'; | ||
|
||
go-dropdown-item { | ||
@include dropdown-item-vars; | ||
|
||
[role='menuitem'] { | ||
@include dropdown-item; | ||
} | ||
|
||
&[disabled] { | ||
[role='menuitem'] { | ||
@include item-disabled-state; | ||
} | ||
} | ||
} | ||
16 changes: 16 additions & 0 deletions
16
packages/core/src/components/go-dropdown-menu/go-dropdown-menu.scss
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,13 +1,29 @@ | ||
@import '../../global/scss/dropdown/mixins'; | ||
go-dropdown-menu { | ||
/** | ||
@prop --dd-item-gap: | ||
Gap between dropdown items | ||
- default: 0 | ||
*/ | ||
--dd-item-gap: 0; | ||
|
||
.dropdown-menu-inner { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--dd-item-gap); | ||
} | ||
|
||
@include dropdown-item-vars; | ||
|
||
[role='menuitem'] { | ||
@include dropdown-item; | ||
} | ||
|
||
go-dropdown-item { | ||
&[disabled] { | ||
[role='menuitem'] { | ||
@include item-disabled-state; | ||
} | ||
} | ||
} | ||
} |
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