@smwb/ui-styles 1.4.1 → 1.4.2
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/less/components/table/table.less +20 -14
- package/package.json +1 -1
|
@@ -48,7 +48,10 @@
|
|
|
48
48
|
height: 56px;
|
|
49
49
|
text-align: left;
|
|
50
50
|
font-weight: 500;
|
|
51
|
-
|
|
51
|
+
// Both spellings: the components emit `smwb-head-cell_sortable`, while
|
|
52
|
+
// `smwb-sortable` comes from hand-written markup of the older API.
|
|
53
|
+
&.smwb-sortable,
|
|
54
|
+
&.smwb-head-cell_sortable {
|
|
52
55
|
cursor: pointer;
|
|
53
56
|
}
|
|
54
57
|
.smwb-head-cell__content {
|
|
@@ -70,23 +73,26 @@
|
|
|
70
73
|
&.smwb-align_right {
|
|
71
74
|
text-align: right;
|
|
72
75
|
}
|
|
76
|
+
// The marker is dim until the column is actually sorted: it has to say
|
|
77
|
+
// "this column can be sorted" without competing with the header text.
|
|
73
78
|
.smwb-head-cell__icon {
|
|
74
79
|
flex-shrink: 0;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
fill: var(--smui-primaryTextColor);
|
|
80
|
+
transition: opacity 0.15s ease-in-out;
|
|
81
|
+
opacity: 0.4;
|
|
78
82
|
}
|
|
79
|
-
&.smwb-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
83
|
+
&.smwb-head-cell_sorted .smwb-head-cell__icon,
|
|
84
|
+
&.smwb-head-cell_sortable:hover .smwb-head-cell__icon,
|
|
85
|
+
.smwb-head-cell__content:focus-visible .smwb-head-cell__icon {
|
|
86
|
+
opacity: 1;
|
|
84
87
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
// Older markup drove the direction by class and a flip; kept working.
|
|
89
|
+
&.smwb-sorted_asc .smwb-head-cell__icon {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
transform: rotate(0);
|
|
92
|
+
}
|
|
93
|
+
&.smwb-sorted_desc .smwb-head-cell__icon {
|
|
94
|
+
opacity: 1;
|
|
95
|
+
transform: rotate(180deg);
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-styles",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Framework-agnostic LESS design tokens and component styles (smwb-*) shared by the @smwb UI libraries. Prebuilt aggregate CSS lives in @smwb/ui-css.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|