@db-ux/core-foundations 4.12.0 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
+
@use "functions";
|
|
2
|
+
|
|
1
3
|
$interactive-elements: 'button,input,textarea,summary,select,a[href],[tabindex]:not([tabindex="-1"])';
|
|
4
|
+
|
|
5
|
+
/// Generates not-disabled > hover/active background-color states.
|
|
6
|
+
/// @param {Color} $bg-hovered - The hovered background color token.
|
|
7
|
+
/// @param {Color} $bg-pressed - The pressed background color token.
|
|
8
|
+
@mixin interactive-bg($bg-hovered, $bg-pressed) {
|
|
9
|
+
@include functions.not-disabled {
|
|
10
|
+
@include functions.hover {
|
|
11
|
+
background-color: $bg-hovered;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include functions.active {
|
|
15
|
+
background-color: $bg-pressed;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|