Skip to content

Commit

Permalink
make the nested state as default for css state helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Feb 20, 2019
1 parent 864a5e0 commit 8236dbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dnb-ui-lib/src/style/core/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//Uses .no-touch and .touch
//classes on <body> element
//based on js touch device test
@mixin hover($nested) {
@mixin hover($nested: true) {
@if $nested {
.no-touch & {
&:hover {
Expand All @@ -55,7 +55,7 @@
}
}
}
@mixin active($nested) {
@mixin active($nested: true) {
@if $nested {
.no-touch & {
&:active {
Expand All @@ -80,7 +80,7 @@
}
}
}
@mixin focus($nested) {
@mixin focus($nested: true) {
@if $nested {
.no-touch & {
&:focus {
Expand Down

0 comments on commit 8236dbe

Please sign in to comment.