Skip to content

Commit 2cee3b1

Browse files
committed
docs(hx-menu): implement and document vars and attrs
1 parent 81fcc34 commit 2cee3b1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/scss/components/menu/_index.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ hx-menu {
66
@extend %hxComponent;
77
@include is-positionable;
88

9-
background-color: $gray-0;
10-
border: 1px solid $gray-300;
9+
background-color: var(--hxMenu-bgcolor, $gray-0);
10+
border: 1px solid var(--hxMenu-border, $gray-300);
1111
box-shadow: $layering-shadow;
1212
max-width: 20rem;
1313
min-width: 10rem;
@@ -23,7 +23,7 @@ hx-menu {
2323
display: block;
2424

2525
header {
26-
color: $gray-600;
26+
color: var(--hxMenu-section-header-color, $gray-600);
2727
font-size: 0.875rem;
2828
font-weight: 500;
2929
text-transform: uppercase;
@@ -44,7 +44,7 @@ hx-menuitem {
4444
background-color: transparent;
4545
border-radius: 2px;
4646
border: none;
47-
color: $cyan-900;
47+
color: var(--hxMenu-hxMenuitem-color, $blue-900);
4848
cursor: pointer;
4949
display: block;
5050
font-size: 0.875rem;
@@ -56,13 +56,13 @@ hx-menuitem {
5656
&:hover {
5757
background-color: transparent;
5858
border-color: transparent;
59-
color: $cyan-500;
59+
color: var(--hxMenu-hxMenuitem-hover-color, $blue-500);
6060
}
6161

6262
&:active {
6363
background-color: transparent;
6464
border-color: transparent;
65-
color: $cyan-700;
65+
color: var(--hxMenu-hxMenuitem-active-color, $blue-700);
6666
}
6767

6868
&:focus {
@@ -72,7 +72,7 @@ hx-menuitem {
7272
&[disabled] {
7373
background-color: transparent;
7474
border-color: transparent;
75-
color: $gray-400;
75+
color: var(--hxMenu-hxMenuitem-disabled-color, $gray-400);
7676
}
7777

7878
&.hxBtn--link { // DEPRECATED: Remove in v1.0.0
@@ -85,7 +85,7 @@ hx-menuitem-group {
8585
display: block;
8686

8787
header {
88-
color: $gray-600;
88+
color: var(--hxMenu-hxMenuitemGroup-header-color, $gray-600);
8989
font-size: 0.875rem;
9090
font-weight: 500;
9191
text-transform: uppercase;

0 commit comments

Comments
 (0)