Sage Abdullah
2adda186a0
Add cancelable w-dropdown:clickaway event for closing dropdown on click away
2024-01-24 09:43:42 +00:00
Sage Abdullah
3cedd02994
Render filter count by counting the active filters client-side
2024-01-24 09:32:28 +00:00
Sage Abdullah
a8bf1ab868
Run scripts inside teleported element in TeleportController
2024-01-24 09:32:28 +00:00
Sage Abdullah
981c1ac36a
Fix drilldown component closing when interacting with datetime pickers
2024-01-24 09:32:28 +00:00
Sage Abdullah
0fb80e8aa0
Use get reference() instead of getReference() in DropdownController
2024-01-24 09:32:28 +00:00
Sage Abdullah
f1c4a495cc
Do not reflect filter_fragment param in the browser
...
Also move the insertion of the param to get_url_without_foo methods to avoid the param getting applied multiple times and to avoid having to parse the URL again.
Rename the filter_fragment to _w_filter_fragment to avoid clashes
2024-01-24 09:32:28 +00:00
Sage Abdullah
bc381be264
Reset filters' w-drilldown state on close
...
This fixes the issue where the state is stuck at the last opened filter when the drilldown's contents are replaced
2024-01-24 09:32:28 +00:00
Sage Abdullah
238cbf3cd2
Dispatch w-dropdown:hidden event in DropdownController on tippy hide
2024-01-24 09:32:28 +00:00
Sage Abdullah
2b8d39ab0d
Add 'reset' value to TeleportController to allow resetting the target element
2024-01-24 09:32:28 +00:00
Alex Morega
c4ef290859
Explicitly set triggerElement when invoking save (with publish) button on pages
...
Fixes #11420
Two issues existed;
1. Safari will not set `document.activeElement` as expected in all other browsers, instead, when a button is clicked it will keep the activeElement as `body`. This meant that the reset of the disabled button (before the confirm triggers a click) was not working.
2. Visually the button still had the loading spinner due to w-progress controller having triggered the loading visuals, this did not block the behaviour but looked broken.
See Safari behaviour docs:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
- https://bugs.webkit.org/show_bug.cgi?id=22261
2024-01-24 08:17:37 +10:00
elhussein almasri
d1b1fa638d
Make TableBlock cells reachable using keyboard
...
Fixes #8893
2024-01-24 07:48:20 +10:00
Sage Abdullah
dbf3c7c586
Adjust margin-bottom of w-field__wrapper in drilldown component
...
Prevent the focus outline from being cut-off
2024-01-23 09:43:08 +00:00
Thibaud Colas
f1520bfcdd
Clean up unfinished aspects of DrilldownController
2024-01-23 09:22:30 +00:00
Sage Abdullah
7ba218a094
Use data-action to listen to w-swap:success in DrilldownController
...
and rename the method to updateParamsCount
2024-01-23 09:22:30 +00:00
Thibaud Colas
68df8a0ba3
Add drilldown filters interface for universal listings
2024-01-23 09:22:30 +00:00
Thibaud Colas
4790b44ba1
Move accessibility checker inside the editor ( #11478 ). Fix #10136
2024-01-23 08:15:34 +00:00
Sage Abdullah
1ab78fc5c1
Fix first column padding in page listings when custom ordering is active
2024-01-23 06:50:07 +00:00
Sage Abdullah
bbd22d8c43
Use bulk actions header's checkbox to detect bulk actions in listing styles
...
bulk-action-checkbox is the checkbox in the <td> elements. On page
listings, if you're searching and there are no results, the table will
still be displayed (to give you the option to search the whole site).
The table has no data rows, which means there are no elements with
bulk-action-checkbox class.
Change the selector to target the bulk-actions-filter-checkbox class
instead, which is the bulk action's <th> checkbox. This element (in the
header cell) is always available even when there are no results.
2024-01-23 06:50:07 +00:00
Rohit Sharma
50bdb724b5
Fix chooser buttons focus color is too dark in dark mode
...
Fixes #10875
2024-01-23 12:30:41 +10:00
Thibaud Colas
76d91d55af
Update color variables documentation and tests
2024-01-22 16:04:06 +00:00
Thibaud Colas
90ca9b7001
Roll out new theme tokens where appropriate
2024-01-22 16:04:06 +00:00
Thibaud Colas
95e763ca2e
Introduce new border-button-outline-hover and text-button-outline-hover theming tokens
2024-01-22 16:04:05 +00:00
Thibaud Colas
c70a4da5cb
Add new color tokens for Wagtail and update existing tokens, dark theme
2024-01-22 16:04:05 +00:00
Thibaud Colas
e022625187
Set the color-scheme property based on Wagtail theming support. Fix #11309
2024-01-22 16:04:05 +00:00
Thibaud Colas
bd8c38ed49
Only apply set widths to actions styles within footer
2024-01-22 11:48:10 +00:00
Thibaud Colas
57d75e2870
Add text ellipsis styles and shorten wording in title header search results label
2024-01-22 11:48:10 +00:00
Thibaud Colas
90ecdb4928
Force title listing header cell to wrap
2024-01-22 11:48:10 +00:00
Thibaud Colas
ec65511eb0
Use tighter horizontal spacing for listing columns
2024-01-22 11:48:10 +00:00
Nandini Arora
8a5d228d37
Remove unused SCSS variable -button-size-mobile ( #11507 )
...
Missed on original #11411 changes
2024-01-22 18:35:42 +10:00
nandini584
c99c74cc7e
Ensure panel anchor sizes meet minimum accessible size
...
Fixes #11411
2024-01-20 22:01:59 +10:00
Jaivignesh-afk
95ee796a0f
Remove unused variables & mixins + update *-padding to rem
...
- Fixes #11458
2024-01-20 21:22:02 +10:00
nandini584
65f8a84cee
Clean up sass variable usage
...
- updated the font to its direct use theme and removed -title-height
- removed the 1-time used scss variables and updated directly in the files
- Fixes #11458
2024-01-20 21:22:02 +10:00
LB Johnston
d7e52d1498
Add unit tests & small fixes to OrderableController
...
- Fix edge case where keyboard ordering and then drag drop ordering could get out of sync
- Ensure the sortable instance is cleaned up if the controller gets removed
- Relates to PR #11250 & Issue #10909
2024-01-20 10:05:21 +10:00
Aman Pandey
ef9375c475
Fix: Remove blur action from orderable controller ( #11476 )
...
* remove blur action from orderable controller as it will update whenever any move is made
* change aria description for instructions
2024-01-19 22:25:17 +10:00
Aman Pandey
735aaa95bf
Adopt w-orderable for page order drag & drop/move
...
- Fixes #10909
2024-01-19 08:48:48 +10:00
Aman Pandey
bf3e317a48
Migrate jQuery re-ordering to Stimulus controller w-orderable
...
- Install and use Sortable.js and not a jQuery plugin
- Set up new controller OrderableController / w-orderable
2024-01-19 08:48:48 +10:00
Sage Abdullah
dae20c2038
Add status side panel to generic CreateView and simplify snippets CreateView
2024-01-18 15:57:44 +00:00
Sage Abdullah
e04d540bd1
Add icon--directional class to mirror icons for RTL languages
2024-01-18 11:56:18 +00:00
the-r3aper7
422d6a8cbe
Migrate enableDirtyFormCheck to Stimulus UnsavedController
...
- Include backwards compatible global function replacement
2024-01-18 08:07:16 +10:00
Thibaud Colas
d79bac199f
Adjust footer action styles based on new designs
2024-01-17 16:42:00 +00:00
Thibaud Colas
7c057661ff
Remove legacy dropdown component
2024-01-17 16:42:00 +00:00
Thibaud Colas
885cf7b76c
Clean up footer actions styles
2024-01-17 16:42:00 +00:00
Thibaud Colas
e801e6cec4
Convert pages footer actions to dropdown_button
2024-01-17 16:39:31 +00:00
Thibaud Colas
67c97b2168
Add warning styles for dropdown-button
2024-01-17 16:39:30 +00:00
Thibaud Colas
bc461d4de3
Convert all header dropdowns to new dropdown_button component
2024-01-17 16:39:30 +00:00
Thibaud Colas
91aa28b11a
Add new dropdown-button component
2024-01-17 16:39:30 +00:00
Sage Abdullah
85408d8626
Implement design for active filter pills
2024-01-17 15:33:07 +00:00
Sage Abdullah
0de0cf4dd5
Add info-125 shade to color variables
2024-01-17 15:33:07 +00:00
Matt Westcott
7fd4e14f8e
Set datetimepicker events to bubble so that they trigger a filter form refresh
2024-01-17 15:33:07 +00:00
Rohit Sharma
6f93b1a2c4
Fix long comment UI issues (scroll shaking & comment overflow)
...
- Includes PR #11322
- Fixes #10984 (scrolling issues with long initial comments)
- Fixes #11324 (overflow of comment reply with long words)
2024-01-17 17:34:48 +10:00