@intellectif/lk-react 23.0.0 → 23.0.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,5 +1,16 @@
1
1
  # @intellectif/lk-react
2
2
 
3
+ ## 23.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#84](https://github.com/intellectif/learning-kit/pull/84) [`c037af8`](https://github.com/intellectif/learning-kit/commit/c037af83d73ec095e24853794cb299149bd7964f) Thanks [@diego28e](https://github.com/diego28e)! - **AI help spans the answer**: the "Explain my answer" panel and the list of hints now take the full width of the question, as feedback on a draft already did.
8
+
9
+ **Action required:** none. Only the skin changes: no markup, prop or string.
10
+
11
+ - The live region inside `.lk-ai` lined up at the start like the button beside it, so it shrank to its content: a short explanation sat in a panel only as wide as its text, and the hints widened each time a longer one arrived. `.lk-ai > [aria-live]` now stretches, which covers the explanation, the hints and feedback on a draft, so feedback on a draft no longer needs a rule of its own.
12
+ - Where the text already filled the line, as on a phone, nothing moves.
13
+
3
14
  ## 23.0.0
4
15
 
5
16
  ### Major Changes
@@ -3352,6 +3352,13 @@
3352
3352
  margin-top: var(--lk-spacing-md);
3353
3353
  }
3354
3354
 
3355
+ /* What the live region holds takes the width of the answer it is about.
3356
+ Lined up at the start like the button, the region would shrink to its
3357
+ content, and the panel or the hints inside it with it. */
3358
+ .lk-ai > [aria-live] {
3359
+ align-self: stretch;
3360
+ }
3361
+
3355
3362
  .lk-ai-button {
3356
3363
  padding: var(--lk-spacing-xs) var(--lk-spacing-md);
3357
3364
  font: inherit;
@@ -3421,14 +3428,8 @@
3421
3428
  font-weight: 600;
3422
3429
  }
3423
3430
 
3424
- /* Feedback on a draft holds lists as well as text: it takes the width of
3425
- the answer it is about — the live region around it included, which would
3426
- otherwise shrink to its content — and the panel spaces its parts, rather
3427
- than each part's own margins. */
3428
- .lk-wr-ai > [aria-live] {
3429
- align-self: stretch;
3430
- }
3431
-
3431
+ /* Feedback on a draft holds lists as well as text: the panel spaces its
3432
+ parts, rather than each part's own margins. */
3432
3433
  .lk-wr-ai .lk-ai-panel {
3433
3434
  display: flex;
3434
3435
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellectif/lk-react",
3
- "version": "23.0.0",
3
+ "version": "23.0.1",
4
4
  "description": "Accessible React 19 assessment components — multiple choice, fill-in-the-blanks, written response — with a resumable exam/review pager, theming, and xAPI delivery.",
5
5
  "keywords": [
6
6
  "react",