-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updated some sass mapping values to better align with naming conven…
…tions
- Loading branch information
Sean Elliott
committed
Mar 23, 2020
1 parent
36c30d4
commit fa48063
Showing
4 changed files
with
41 additions
and
41 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
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
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 +1,15 @@ | ||
@mixin button-variant($property-map) { | ||
@if type-of($property-map) != 'map' { | ||
@error 'NSW-DS button-variant mixin accepts a map of values consisting of the following keys: color, colorHover, bg, bgHover, border, borderHover.'; | ||
@error 'NSW-DS button-variant mixin accepts a map of values consisting of the following keys: text-color, text-color-hover, background, background-hover, border, border-hover.'; | ||
} | ||
|
||
color: map-get($property-map, color); | ||
background-color: map-get($property-map, bg); | ||
color: map-get($property-map, text-color); | ||
background-color: map-get($property-map, background); | ||
border-color: map-get($property-map, border); | ||
|
||
&:hover { | ||
color: map-get($property-map, colorHover); | ||
background-color: map-get($property-map, bgHover); | ||
border-color: map-get($property-map, borderHover); | ||
color: map-get($property-map, text-color-hover); | ||
background-color: map-get($property-map, background-hover); | ||
border-color: map-get($property-map, border-hover); | ||
} | ||
} |