Sage Abdullah
eadfe429f8
Fix white text on white background in previews for sites that use color-scheme without a background-color
2025-02-21 11:25:24 +00:00
Sage Abdullah
4768237a29
Fix console errors in Draftail tests
2025-02-20 14:09:00 +00:00
Thibaud Colas
1033813347
Use the correct event listener to adjust minimap positioning ( #12896 )
2025-02-19 13:45:58 +00:00
Sage Abdullah
198ff1bfd3
Fix invisible nested menu items #12847
2025-02-19 13:30:33 +00:00
Sage Abdullah
9901646874
Ensure block preview is hidden when the user clears out the search input
2025-02-03 14:46:26 +00:00
Thibaud Colas
91a02933f6
Switch block previews from hover + toggle to toggle only
2025-01-31 15:45:08 +00:00
Thibaud Colas
53df6a2492
Adjust block chooser styles to match latest designs
2025-01-31 15:45:04 +00:00
Sage Abdullah
32ceb1eda9
Improve block preview layout for responsiveness and reduced shifting
2025-01-30 15:43:08 +00:00
Thibaud Colas
7e451f2116
Add unit tests for rich text block chooser initialisation based on capabilities
2025-01-28 11:24:11 +00:00
Thibaud Colas
32011394e8
Configure block previews and descriptions in block chooser within rich text
2025-01-28 11:24:09 +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
sage
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
Srishti Jaiswal
0bba5da337
Correct positioning of comment buttons with DateField, TimeField and DateTimeField. Fix #12214 ( #12685 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2025-01-13 12:08:56 +00:00
Matt Westcott
784f4bbbb9
Don't set aria-expanded=false on clear(), because clearing in itself doesn't close the menu
2024-12-19 14:10:30 +00:00
Ayaan
1cbb1e8fb2
Remove - extra addClass & aria-label in appendColumnButton and restore aria-expanded="false" in clear method
2024-12-19 13:23:24 +00:00
Ayaan
df8a6f219c
Added aria-expanded attribute to add new column button ( #12680 )
2024-12-18 18:03:24 +00:00
LB Johnston
ae89829661
Deprecate & rework imports for `window.buildExpandingFormset`
...
- window.buildExpandingFormset and using the base class `ExpandingFormset` can now be deprecated.
- Move the window global setting to core.js which avoids the need to add the import in editor_js, to align with other future deprecations in core.js
- Add upgrade considerations in release notes
- `ExpandingFormset` is still needed for other existing usage (InlinePanel/MultipleChooserPanel)
- Add additional JSDoc and updates to Eslint to advise developers that this feature is not to be used for new code
2024-12-10 01:42:32 +00:00
LB Johnston
6bc9b0ea40
Adopt Stimulus `w-formset` attributes in Group edit/create view
...
- Use the Wagtail admin formset mixin to adopt new data attributes on core form parts
- Update the edit/create templates to put the attributes on the remaining elements
- Add basic unit tests for smoke testing data attributes
- Remove CSP incompatible inline scripts approach
- Remove the now unused standalone static build/imports for the group edit view as this will not be needed
- Update Eslint accordingly
2024-12-10 01:42:32 +00:00
LB Johnston
8d35cc57e6
Add initial Stimulus FormsetController `w-formset`
...
Replaces the core functionality in `client/src/components/ExpandingFormset/index.js` and the Delete callbacks in other usage of the `window.buildExpandingFormset` function.
Provides limitations on add/delete once the min/max have been reached but does not set up any disabling of these buttons as this is currently in the remit of `InlinePanel`.
Includes a full test suite for error handling, updating inputs and nested usage which leverages Stimulus' scope management.
Does not rely on any id attribute structure or wrangling.
Relates to #7915
2024-12-10 01:42:32 +00:00
LB
4020efc4d0
Add JSDoc to exported function in runInlineScripts
2024-12-10 01:42:32 +00:00
LB
d42af56220
Create `transition` util to resolve a promise when an animation ends
2024-12-10 01:42:32 +00:00
Matt Westcott
28cde800d9
Correctly initialize page chooser search results for multiple selection
2024-12-04 10:48:46 +00:00
Srishti-j18
c2676af857
Ensure new ListBlock instances get created with unique IDs
...
Fixes #10074
2024-12-04 19:10:04 +10:00
Ayaan
5837d346d9
Fix initial mode value logic in modeValueChanged
...
Fix from #12641
2024-12-04 17:35:01 +10:00
Jaivignesh-afk
13951cf7a5
Fix empty `th` elements in admin (accessibility)
...
- Headings cannot be empty (https://dequeuniversity.com/rules/axe/4.9/empty-table-header )
- Added aria-hidden=true or a suitable label to empty <th> across admin
- Fixes #11596
- Additional related fixes provided in #12203 & #11465
2024-12-04 12:50:13 +10:00
ayaan-qadri
acdeb4f8d9
Update privacy-switch class toggle targets to use ZoneController
...
- Refactor styles for status tag to be more easily used across multiple elements
- Fixes #12611 (accessibility issue with the live link not reflecting update title/tooltips)
2024-12-03 07:53:40 +10:00
ayaan-qadri
4ea2c661c8
Update privacy-switch to avoid toggling classes & instead dispatch an event
2024-12-03 07:53:40 +10:00
ayaan-qadri
3a50b2467a
Added switch method & inactive class support to ZoneController
...
- fixes #12611
2024-12-03 07:53:40 +10:00
LB Johnston
4438f13d5c
Add initial implementation of w-rules/RulesController
...
- Allows a controlled form to have targets that are conditionally enabled based on a rule to match against the form data
- Partial progress for #11045
2024-12-03 07:15:09 +10:00
LB Johnston
918ceebc17
Create a JavaScript util `castArray`
...
- Allows easy conversion of any value/s supplied into an array or keep as an array if it's already one
2024-12-03 07:15:09 +10:00
Sage Abdullah
839193ff3c
Remove unused LinkController
...
See #11736
2024-11-29 18:17:00 +10:00
Bartosz Cieliński
5815a7e1ef
Ensure Draftail features wrap in case there is a lot of added features
2024-11-28 08:11:12 +10:00
Strapchay
b3ba89b2ec
Fix commenting not working on pages with read_only FieldPanels
...
Fixes #11838
2024-11-28 07:12:54 +10:00
LB
c416cfb7d6
Fix minor typos
...
Update to US spelling
2024-11-27 15:33:59 +00:00