Skip to content

Commit 169e2be

Browse files
MarwaAliKdhim87
authored andcommitted
feat: added navigation-toggle-button active state tokens
1 parent c740976 commit 169e2be

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

components/navigation/src/_mixin.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@
247247
--utrecht-button-subtle-focus-background-color: var(--utrecht-navigation-toggle-button-focus-background-color);
248248
}
249249

250+
@mixin utrecht-navigation__toggle-button--active {
251+
--utrecht-button-subtle-active-color: var(--utrecht-navigation-toggle-button-active-color);
252+
--utrecht-button-subtle-active-border-color: var(--utrecht-navigation-toggle-button-active-border-color);
253+
--utrecht-button-subtle-active-background-color: var(--utrecht-navigation-toggle-button-active-background-color);
254+
}
255+
250256
@mixin utrecht-icon-custom {
251257
margin-inline-end: var(--utrecht-icon-custom-margin-inline-end);
252258
}

components/navigation/src/index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
& button:focus {
9797
@include utrecht-navigation__toggle-button--focus;
9898
}
99+
& button:active {
100+
@include utrecht-navigation__toggle-button--active;
101+
}
99102
}
100103

101104
.utrecht-icon-custom {

components/navigation/src/tokens.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,38 @@
837837
},
838838
"type": "color"
839839
}
840+
},
841+
"active": {
842+
"color": {
843+
"$extensions": {
844+
"nl.nldesignsystem.css.property": {
845+
"syntax": "<color>",
846+
"inherits": true
847+
},
848+
"nl.nldesignsystem.figma.supports-token": false
849+
},
850+
"type": "color"
851+
},
852+
"border-color": {
853+
"$extensions": {
854+
"nl.nldesignsystem.css.property": {
855+
"syntax": "<color>",
856+
"inherits": true
857+
},
858+
"nl.nldesignsystem.figma.supports-token": false
859+
},
860+
"type": "color"
861+
},
862+
"background-color": {
863+
"$extensions": {
864+
"nl.nldesignsystem.css.property": {
865+
"syntax": "<color>",
866+
"inherits": true
867+
},
868+
"nl.nldesignsystem.figma.supports-token": false
869+
},
870+
"type": "color"
871+
}
840872
}
841873
}
842874
},

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@
224224
"color": {},
225225
"border-color": {},
226226
"background-color": {}
227+
},
228+
"active": {
229+
"color": {},
230+
"border-color": {},
231+
"background-color": {}
227232
}
228233
}
229234
},

0 commit comments

Comments
 (0)