Skip to content

Commit 8624b56

Browse files
MarwaAliKdhim87
authored andcommitted
feat: added navigation-toggle-button hover state tokens
1 parent 316d149 commit 8624b56

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

components/navigation/src/_mixin.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@
236236
padding-inline-end: var(--utrecht-navigation-toggle-button-padding-inline-end);
237237
}
238238

239+
@mixin utrecht-navigation__toggle-button--hover {
240+
--utrecht-button-subtle-hover-color: var(--utrecht-navigation-toggle-button-hover-color);
241+
--utrecht-button-subtle-hover-border-color: var(--utrecht-navigation-toggle-button-hover-border-color);
242+
}
243+
239244
@mixin utrecht-icon-custom {
240245
margin-inline-end: var(--utrecht-icon-custom-margin-inline-end);
241246
}

components/navigation/src/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@
9090

9191
.utrecht-navigation__toggle-button {
9292
@include utrecht-navigation__toggle-button;
93+
& button:hover {
94+
@include utrecht-navigation__toggle-button--hover;
95+
}
9396
}
97+
9498
.utrecht-icon-custom {
9599
@include utrecht-icon-custom;
96100
}

components/navigation/src/tokens.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,28 @@
783783
"nl.nldesignsystem.figma.supports-token": false
784784
},
785785
"type": "spacing"
786+
},
787+
"hover": {
788+
"color": {
789+
"$extensions": {
790+
"nl.nldesignsystem.css.property": {
791+
"syntax": "<color>",
792+
"inherits": true
793+
},
794+
"nl.nldesignsystem.figma.supports-token": false
795+
},
796+
"type": "color"
797+
},
798+
"border-color": {
799+
"$extensions": {
800+
"nl.nldesignsystem.css.property": {
801+
"syntax": "<color>",
802+
"inherits": true
803+
},
804+
"nl.nldesignsystem.figma.supports-token": false
805+
},
806+
"type": "color"
807+
}
786808
}
787809
}
788810
},

proprietary/design-tokens/src/component/utrecht/navigation.tokens.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,11 @@
215215
"offset-start": {
216216
"value": "16px"
217217
},
218-
"padding-inline-end": {}
218+
"padding-inline-end": {},
219+
"hover": {
220+
"color": {},
221+
"border-color": {}
222+
}
219223
}
220224
},
221225
"icon": {

0 commit comments

Comments
 (0)