Wykres commitów

1898 Commity (3f70a0a52f2fbbb2d815e5a47d358427e82c12a5)

Autor SHA1 Wiadomość Data
LB 1772909551 Add FocusController story 2025-03-13 21:27:23 +10:00
LB 3c09da2fb8 Enhance & rework FocusController
- Update the Controller import & identifier to be `w-focus` not `w-skip-link`
- Rework methods to be easier to maintain, pull out the focus event attachment handler to a function
- Add JSDoc examples & refine description
- Only add then remove the tabindex attribute if needed
- Rework unit tests to be the emerging common structure, add unit test coverage & test for the preservation of existing tabindex attributes
2025-03-13 21:27:23 +10:00
LB 472c1e95c2 Create a force focus util for common forced focus usage 2025-03-13 21:27:23 +10:00
LB 5ccea76e3d Rename SkipLinkController to FocusController 2025-03-13 21:27:23 +10:00
LB 7b7dd98c19 Stimulus controllers - Move repeated no-param-reassign declarations to top of file 2025-03-13 05:51:08 +10:00
LB 85665af504 Update Stimulus controller `@example` JSDoc items
- Use consistent ```html markdown blocks
- Use consistent two space indentation
- Move the description to the example row, not on the new line where applicable
- Add missing examples were practical
2025-03-13 05:51:08 +10:00
LB 83ec67d6c1 Update Stimulus JSDoc to use US English spelling 2025-03-13 05:50:41 +10:00
LB c793d302b4 Fix alpha sorting of Stimulus controller imports 2025-03-13 05:50:41 +10:00
LB bfcd0c7496
Clean up stubs & adapter
- Ensure Jest only adapter items are in adapter.js
- Ensure Jest AND Storybook items are in stubs.js
- Add mock for someElement.scrollIntoView in the adapter
2025-03-12 21:06:08 +07:00
Sage Abdullah 3d9a868a97
Fix LocaleController tests 2025-03-12 15:39:23 +07:00
Thibaud Colas da57f04b80
Use identical button styles for comment and comment replies 2025-02-24 11:46:31 +00:00
Thibaud Colas aae7d85153
Refactor comment styles to use new Sass module system and avoid duplication 2025-02-24 11:46:31 +00:00
Thibaud Colas 21b5e3114f
Add focus-outline mixin to global set 2025-02-24 11:46:30 +00:00
Thibaud Colas 2d2953a28a
Stop using box mixin for a11y result row 2025-02-24 11:46:30 +00:00
Thibaud Colas e8a3d753e3
Refactor minimap styles 2025-02-24 11:46:30 +00:00
Thibaud Colas e67836da34
Remove unused Draftail ImageBlock styles 2025-02-24 11:46:30 +00:00
Thibaud Colas b59539c7d6
Update Draftail stylesheets to resolve all Sass warnings 2025-02-24 11:46:29 +00:00
Bernhard Bliem 5b2791f18e Make 'Actions' string in Draftail widget translatable 2025-02-21 13:50:21 +00:00
Sage Abdullah cbbc571867 Fix white text on white background in previews for sites that use color-scheme without a background-color 2025-02-21 11:24:10 +00:00
Sage Abdullah f714f8d219
Fix console errors in Draftail tests 2025-02-20 13:53:35 +00:00
Sage Abdullah fd7ec28e3d
Force preview panel scroll behavior to instant to avoid flickering 2025-02-20 13:34:12 +00:00
Thibaud Colas 952ee04f08 Use the correct event listener to adjust minimap positioning (#12896) 2025-02-19 13:43:44 +00:00
Sage Abdullah 3e24fee094 Fix invisible nested menu items #12847 2025-02-19 13:25:42 +00:00
LB (Ben Johnston) 33d30d8105
NPM package updates; `downshift`, `focus-trap-react`, `immer`, `redux`, `uuid` (#12540)
* Update NPM packages (focus-trap-react, downshift, uuid, immer, redux)

## Relevant upgrade release notes

- `focus-trap-react` - v8 to v10
  - https://github.com/focus-trap/focus-trap-react/releases/tag/v9.0.0
  - https://github.com/focus-trap/focus-trap-react/releases/tag/v10.0.0
- `downshift` - v7 to v9
  - https://github.com/downshift-js/downshift/releases/tag/v9.0.0
  - https://github.com/downshift-js/downshift/releases/tag/v8.0.0
  - https://github.com/downshift-js/downshift/blob/master/src/hooks/MIGRATION_V8.md
- `uuid` - v9 to v11
  - https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1100-2024-10-26
  - https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#1000-2024-06-07
- `immer` v9 to v10
  - https://github.com/immerjs/immer/releases/tag/v10.0.0
- Update Redux ecosystem
  - https://github.com/reduxjs/redux-thunk/releases/tag/v3.1.0
  - https://github.com/reduxjs/redux/releases/tag/v5.0.0
  - https://github.com/reduxjs/reselect/releases/tag/v5.0.1
  - https://github.com/reduxjs/react-redux/releases/tag/v8.0.0 (note: react-redux cannot be updated further due to React dependency, which is blocked by Draftail)

* Add release notes

---------

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-02-12 03:51:27 +00:00
naina35 182ae8488c
Apply Sass mixed declarations migration in preparation for CSS nesting. Fix #12720 (#12733)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-02-12 03:15:56 +00:00
Srishti Jaiswal e23096f354
Migrate away from deprecated Sass import rules to module system (#12734) 2025-02-11 14:58:31 +00:00
Sage Abdullah c70719bfa6
Ensure block preview is hidden when the user clears out the search input 2025-02-03 14:45:37 +00:00
Thibaud Colas b365206d05
Switch block previews from hover + toggle to toggle only 2025-01-31 15:34:17 +00:00
Thibaud Colas 0193cad5ea
Adjust block chooser styles to match latest designs 2025-01-31 14:48:40 +00:00
Sage Abdullah db87deb0c8 Improve block preview layout for responsiveness and reduced shifting 2025-01-30 15:40:49 +00:00
Thibaud Colas eb4b240791
Add unit tests for rich text block chooser initialisation based on capabilities 2025-01-28 11:11:56 +00:00
Thibaud Colas 4d6c8b87a1
Configure block previews and descriptions in block chooser within rich text 2025-01-28 11:11:56 +00:00
Sage Abdullah 476e7aa35c
Ensure block label and description are scrollable in previews 2025-01-20 17:30:27 +00:00
Sage Abdullah 28d8ba6af7
Improve responsiveness of block preview layout 2025-01-20 17:30:26 +00:00
Sage Abdullah 77bcbf702d
Add preview button with eye icon in block chooser 2025-01-20 17:30:25 +00:00
Sage Abdullah d25a67a4b8
Implement block previews in StreamField block chooser 2025-01-20 17:29:53 +00:00
Thibaud Colas e236919a79 Implement dragndrop safeguard for rich text fields 2025-01-20 17:05:08 +00:00
Thibaud Colas 3cbca376a9 Implement dragndrop for StreamField with sortable.js 2025-01-20 17:05:08 +00:00
Thibaud Colas 1636059bef Fix Tippy destroy preventing further instantiations 2025-01-20 17:05:08 +00:00
Thibaud Colas fe9409f99c Add drag and drop support to InlinePanel 2025-01-20 17:05:08 +00:00
Thibaud Colas 1c3f84f9c2 Clean up inline panel tests, using correct markup 2025-01-20 17:05:08 +00:00
Jatin Bhardwaj b4781e2a90
Added scroll offset to ensure visibility of fields when typing. Fix #7777 (#12759)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-20 13:24:33 +00:00
sag​e 841b36ed18
Prevent main menu from re-rendering when clicking outside while the menu is closed (#12755)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-20 07:33:36 +00:00
Matt Westcott 0ccd99c867 Only replace alt text field if it hasn't been edited from the previous default 2025-01-20 07:20:49 +00:00
Matt Westcott 26f4d07ee1 Populate ImageBlock alt text from default_alt_text when an image is chosen
Fixes #12660
2025-01-20 07:20:49 +00:00
Matt Westcott 1db66a7ded Add default_alt_text to the state dictionary returned by ImageChooser view and used by AdminImageChooser widget 2025-01-20 07:20:49 +00:00
Thibaud Colas 14d16ae823 Remove now-unneeded focus-visible backwards compat 2025-01-17 13:50:12 +00:00
Rishabh Sharma 782aa0e16b
Reduce confusing spacing below StreamField blocks help text. Fix #11888 (#11934)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 10:00:09 +00:00
Ayaan cb11ec3e01
Upgraded sass-loader to remove Sass warnings (#12728)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-14 08:44:47 +00:00
Sage Abdullah 944fd02dc3 Replace l18n library with Intl-based LocaleController 2025-01-13 13:05:53 +00:00