@apliteni/apliteni-ui 0.96.1 → 0.97.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.96.1",
3
+ "version": "0.97.0",
4
4
  "workspaces": [
5
5
  "react"
6
6
  ],
package/react/README.md CHANGED
@@ -658,9 +658,10 @@ size. Neither has a filled disc behind it.
658
658
  there is no backdrop layer and no `backdrop` prop. Pass `title`, one short `body`
659
659
  line, and React `actions`. There is no `eyebrow` prop: a confirmation carries one
660
660
  title and at most one line under it, so put the outcome in the title rather than in a
661
- label above it. A kit `Button` carries the focus ring already; a router link or
662
- a plain `<a>` must also take `className="ui-focusable"`, or it falls back to the
663
- browser's own focus outline. An omitted or empty `actions`
661
+ label above it. A kit `Button` carries the focus ring already, and so does
662
+ a router link or a plain `<a>`: the kit rings every anchor on `:focus-visible`. A
663
+ focusable that is neither — a `div` or `span` given `tabIndex` — still needs
664
+ `className="ui-focusable"`, or it falls back to the browser's own focus outline. An omitted or empty `actions`
664
665
  leaves out the actions row. Hero and split default to h1; compact defaults to h2.
665
666
  `level` overrides the heading rank, and a value outside 1–6 falls back to that layout
666
667
  default. `confetti` enables the existing decorative animation. All three components
@@ -141,6 +141,13 @@ svg:where(:not([width]):not([height])) {
141
141
  .ui-focusable, in the vanilla topbar, React ThemeToggle and the React shell's bar
142
142
  alike, so keyboard focus on it fell back to the browser's own outline in all three.
143
143
  It has no class of its own to opt in with; it joins the list instead. Found on #385. */
144
+ /* `a` is here as an ELEMENT, not a class, because a link in running text is the one
145
+ control a consumer writes with no class on it at all — so it took the browser's
146
+ outline, which #457 refused. The net is over every anchor; a component that rings
147
+ its own anchor outranks this at two classes and keeps the shape it chose. The band
148
+ sits at whatever corner the link carries, which is the rule .ui-table's links
149
+ already take. Found on #586, decided on #587. */
150
+ a:focus-visible,
144
151
  .ui-focusable:focus-visible,
145
152
  .ui-snippet :focus-visible,
146
153
  .ui-btn:focus-visible,
@@ -145,14 +145,12 @@
145
145
  top: 50%;
146
146
  translate: 0 -50%;
147
147
  }
148
- /* And on keyboard focus every link in a table takes the kit ring, at whatever corner it
149
- carries, so none falls back to the browser's own outline. `.ui-btn` has the ring already.
150
- why: guidelines/state-set.md#focus-rings
151
- held by: src/styles/table-focus.test.js */
152
- .ui-table a:not(.ui-btn):focus-visible {
153
- outline: var(--ring);
154
- outline-offset: var(--ring-offset);
155
- }
148
+ /* No focus rule here any more. #510 gave a cell link the ring with a rule of this file's
149
+ own, because `base.css` reached no bare `a`; #587 put `a` on that shared list, so this
150
+ one painted the same two declarations a second time. The guarantee is unchanged and
151
+ still held by src/styles/table-focus.test.js — the corner the band follows is the
152
+ `border-radius` above, which is this file's and stays.
153
+ why: guidelines/state-set.md#focus-rings */
156
154
 
157
155
  .ui-table__num { text-align: right; font-variant-numeric: tabular-nums; }
158
156
  /* A numeric column is sized to its content while .ui-table__title claims the rest,