@stackoverflow/stacks 2.8.1 → 2.8.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.
@@ -58,7 +58,6 @@
58
58
  & .s-btn--text {
59
59
  &:before {
60
60
  content: attr(data-text);
61
- content: attr(data-text) / "";
62
61
  font-weight: bold;
63
62
  height: 0;
64
63
  pointer-events: none;
@@ -14,6 +14,7 @@
14
14
  --_na-item-selected-bg: var(--theme-primary);
15
15
  --_na-item-selected-fc: var(--white);
16
16
  --_na-item-selected-bg-hover: var(--theme-primary-500);
17
+ --_na-item-text-ta: center;
17
18
  --_na-title-mt: var(--su16);
18
19
 
19
20
  // CONTEXTUAL STYLES
@@ -39,6 +40,7 @@
39
40
  --_na-fd: column;
40
41
  --_na-gap: 0;
41
42
  --_na-p: 0;
43
+ --_na-item-text-ta: unset;
42
44
  --_na-item-ws: normal;
43
45
  }
44
46
 
@@ -66,6 +68,8 @@
66
68
  .highcontrast-mode({
67
69
  text-decoration: none;
68
70
  });
71
+
72
+ font-weight: bold;
69
73
  }
70
74
 
71
75
  // TODO: include child component class (without variant) on selector
@@ -112,6 +116,21 @@
112
116
  user-select: auto;
113
117
  }
114
118
 
119
+ & &--item-text {
120
+ &:before {
121
+ content: attr(data-text);
122
+ font-weight: bold;
123
+ height: 0;
124
+ pointer-events: none;
125
+ user-select: none;
126
+ visibility: hidden;
127
+ }
128
+
129
+ display: inline-flex;
130
+ flex-direction: column;
131
+ text-align: var(--_na-item-text-ta);
132
+ }
133
+
115
134
  & &--title {
116
135
  &:first-child {
117
136
  --_na-title-mt: 0;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/StackExchange/Stacks.git"
7
7
  },
8
- "version": "2.8.1",
8
+ "version": "2.8.2",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib",