@hearthsound/design 0.2.10 → 0.2.11

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/README.md CHANGED
@@ -52,6 +52,9 @@ Components use BEM-like `hs-` classes:
52
52
  - utilities: the type scale (`hs-display`, `hs-title-1` to `hs-title-4`, `hs-heading`,
53
53
  `hs-body`, `hs-caption`), `hs-link`, `hs-visually-hidden` and `hs-icon`.
54
54
 
55
+ Card modifiers `hs-card--album` and `hs-card--playlist` mark the kind of card and carry no
56
+ rules of their own; `hs-card--artist` is the only card that changes layout.
57
+
55
58
  State is expressed with real pseudo-classes and ARIA attributes, never helper classes:
56
59
  `:hover`, `:focus-visible`, `:disabled`, `[aria-disabled="true"]`, `[aria-pressed="true"]`,
57
60
  `[aria-selected="true"]`, `[aria-current]`, `[aria-busy="true"]`, `[aria-invalid="true"]`
@@ -5,10 +5,9 @@
5
5
  * import-root rows, the plugin permission list, the storage bar with its legend, and
6
6
  * the acquisition row spacing.
7
7
  *
8
- * plugin-approval-interim: the Install confirmation (340 px dialog with the permission
9
- * list, Cancel and a suggested Install) and the File-tab permission list are built but
10
- * stay switched off until the core reports permissions for uninstalled plugins. Until
11
- * then no permission list shows before install. No CSS state is added for the switch.
8
+ * p24-r3: the permission list is shown in the 340 px Install confirmation before an
9
+ * install from an index, and in the review of an upgrade that asks for new permissions.
10
+ * `plugins.confirm_install` (Don't ask again) skips the confirmation.
12
11
  */
13
12
 
14
13
  /* ------------------------------------------------------------------ */
@@ -111,39 +110,42 @@
111
110
  }
112
111
 
113
112
  .hs-permission-row {
114
- display: flex;
113
+ display: grid;
114
+ grid-template-columns: minmax(64px, max-content) minmax(0, 1fr) max-content;
115
115
  align-items: center;
116
116
  gap: 10px;
117
117
  font-size: 13px;
118
118
  }
119
119
 
120
120
  .hs-permission-row__scope {
121
- flex: none;
122
- min-width: 64px;
123
121
  font: 12px var(--hs-font-mono);
124
122
  color: var(--hs-fg);
125
123
  }
126
124
 
127
125
  .hs-permission-row__detail {
128
- flex: 1;
129
126
  min-width: 0;
130
127
  color: var(--hs-fg-muted);
128
+ overflow-wrap: anywhere;
131
129
  }
132
130
 
133
131
  .hs-permission-row .hs-pill {
134
- flex: none;
135
- margin-left: auto;
132
+ justify-self: end;
136
133
  }
137
134
 
138
135
  @media (max-width: 720px) {
139
136
  .hs-permission-row {
140
- flex-wrap: wrap;
137
+ grid-template-columns: minmax(64px, max-content) minmax(0, 1fr);
141
138
  row-gap: 2px;
142
139
  }
143
140
 
144
141
  .hs-permission-row__detail {
145
- flex-basis: 100%;
146
- order: 3;
142
+ grid-column: 1 / -1;
143
+ grid-row: 2;
144
+ }
145
+
146
+ .hs-permission-row .hs-pill {
147
+ grid-column: 2;
148
+ grid-row: 1;
147
149
  }
148
150
  }
149
151
 
@@ -123,6 +123,19 @@
123
123
  font-weight: 600;
124
124
  }
125
125
 
126
+ /* E-E-2: the album hero's artist is a link inside the by-line, in the line's own
127
+ * weight and tone; the underline appears on hover and keyboard focus only. */
128
+ .hs-hero__by-link {
129
+ color: inherit;
130
+ text-decoration: none;
131
+ }
132
+
133
+ .hs-hero__by-link:hover,
134
+ .hs-hero__by-link:focus-visible {
135
+ text-decoration: underline;
136
+ text-underline-offset: 2px;
137
+ }
138
+
126
139
  .hs-hero__meta {
127
140
  margin: 0;
128
141
  color: var(--hs-fg-muted);
@@ -171,6 +171,23 @@
171
171
  color: var(--hs-fg-muted);
172
172
  }
173
173
 
174
+ /* E-E-2: an artist name inside a row is a link. The row's text is pointer-events:
175
+ * none so presses reach the covering play button, so the link takes presses back and
176
+ * lifts above that button; the underline appears on hover and keyboard focus only. */
177
+ .hs-track-row__link {
178
+ pointer-events: auto;
179
+ position: relative;
180
+ z-index: 1;
181
+ color: inherit;
182
+ text-decoration: none;
183
+ }
184
+
185
+ .hs-track-row__link:hover,
186
+ .hs-track-row__link:focus-visible {
187
+ text-decoration: underline;
188
+ text-underline-offset: 2px;
189
+ }
190
+
174
191
  .hs-track-row__duration {
175
192
  font-size: 13px;
176
193
  font-variant-numeric: tabular-nums;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearthsound/design",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "license": "MIT",
5
5
  "description": "Design language of Hearthsound: tokens, fonts, icons and component styles",
6
6
  "repository": {