Thibaud Colas
dae099affa
Prevent overlap between side panels resize grips and comments, preview
2023-05-02 13:06:03 +01:00
Thibaud Colas
418d3ec8b4
Add back minimap overflow when expanded, to display error badges
2023-05-02 13:06:03 +01:00
Sage Abdullah
f4ce346fe1
Fix side panel stuck in resize state when pointer is released outside the grip
2023-04-28 17:22:17 +01:00
sage
aa96dda15a
Fix dismissible SubMenuItem not showing the number badge when there's a new item ( #10107 )
...
Previously, we rely on the fact that the SubMenuItem itself is a dismissible. So, we decide how to show/hide the number badge based on the value for the SubMenuItem's dismissible ID on the server. However, this means that if the user has dismissed the SubMenuItem and we add new dismissible child items within it (e.g. update the ID for the 'What's new in Wagtail version' child item), the number badge will not show up. This commit changes the logic to show/hide the number badge based on whether there are any undismissed items within the SubMenuItem and whether the it has been opened or not.
2023-04-28 15:58:57 +01:00
Andy Babic
e60e4dbb43
Negate top margins on .w-field_label, so that the h3 version looks the same as regular labels
2023-04-25 16:06:08 +01:00
Andy Babic
4086c7de7a
Add read_only option support to FieldPanel
2023-04-25 16:05:27 +01:00
Sage Abdullah
d8a0ff98e3
Add handsontable styles override to fix background color in dark mode
2023-04-20 11:34:09 +01:00
Sage Abdullah
2ef3b36c11
Fix comment notice text color in dark mode
2023-04-20 11:34:09 +01:00
Sage Abdullah
b9f8a6b6c0
Dispatch resize event to resize Handsontable on initialisation ( #10367 )
...
Fixes #10355
2023-04-20 09:48:58 +01:00
Thibaud Colas
b81ec15e3d
Fix comment "add" buttons being hidden in StreamField
2023-04-20 14:14:25 +07:00
Thibaud Colas
64ae146e29
Swap comment "add" button icons between default and hover
2023-04-20 14:14:24 +07:00
Thibaud Colas
5ef6af178e
Prevent reaching side panel close button while tabbing
2023-04-20 14:14:24 +07:00
Thibaud Colas
d8731c2dc6
Fix inconsistent comment button positions for fields in and out of StreamField
2023-04-20 14:14:24 +07:00
Thibaud Colas
82ea1fd975
Fix StreamField comment controls initialisation
2023-04-20 14:14:24 +07:00
sage
ed36b5b9b6
Improve customisability of the accessibility checker configuration. Fix #10137 ( #10333 )
...
* Extract userbar BaseItem.get_context_data()
* Extract Axe config into smaller attributes and methods for easier overrides
* Add TypeScript interface for WagtailAxeConfiguration
* Improve typings for userbar.ts
* Separate Axe `runOnly` and `rules` options
* Pass request object to all axe configuration methods
* Remove Axe runOnly option if it's falsy
* Add docs for customising the accessibility checker
* Use lists for Axe include and exclude selectors
* Parse JSON script when testing accessibility checker config
* Add tests for customising accessibility checker configuration
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-20 07:46:56 +01:00
Sage Abdullah
52739832bc
Fix nested SubmenuMenuItem from being hidden when expanded
2023-04-19 15:13:42 +01:00
sage
70bb15a7e1
Prevent long preview mode names from making the select element overflow the side panel. Fix #10240 ( #10354 )
2023-04-19 14:30:21 +01:00
Thibaud Colas
bf1f15c3d5
Update relevant color declarations to use theme-agnostic color tokens
2023-04-19 13:38:23 +01:00
Thibaud Colas
567b999548
Set up new color design tokens for light and dark themes
2023-04-19 13:38:23 +01:00
Thibaud Colas
35868364c5
Remove unused dropzone styles
2023-04-19 13:38:23 +01:00
Thibaud Colas
42600f8bec
Fix Storybook rendering of body element
2023-04-19 13:38:23 +01:00
Thibaud Colas
8f797266d2
Change the width of the minimap
2023-04-18 15:58:07 +01:00
Thibaud Colas
cd867ec952
Make sure link text conveys they can be used to expand minimap
2023-04-18 15:58:07 +01:00
Thibaud Colas
fdf930e49f
Implement nicer hover styles for side panel resizing
2023-04-18 15:58:07 +01:00
Thibaud Colas
6a8096bdb8
Reveal section on minimap click
2023-04-18 15:58:07 +01:00
Thibaud Colas
1c27af0618
Move the minimap to be next to side panels
2023-04-18 15:58:07 +01:00
Thibaud Colas
caf78e1ce9
Make the minimap store its state between page reloads
2023-04-18 15:58:07 +01:00
Thibaud Colas
64058647ec
Update resize icon in side panels
2023-04-18 15:58:07 +01:00
Thibaud Colas
79df3f8f01
Fix minimap overlapping with footer actions on mobile
2023-04-18 15:58:07 +01:00
Thibaud Colas
78eb3d5844
Always set Sass output to expanded so CSS process is identical in dev and prod builds ( #10347 )
2023-04-18 15:32:05 +01:00
LB Johnston
dd2a21bad1
Allow blocking redirect in Stimulus Action controller #10035
...
- If values were false/empty string, it would fall back to the event value
- Instead, ensure that the custom event details OR the param can be used to override this and stop redirection
2023-04-18 15:38:41 +10:00
Karl Hobley
7f297cd019
Update comment list positioning so that they slide in/out with the sidebar ( #8345 )
2023-04-18 00:58:14 +01:00
Aadi jindal
ed58c692ca
Allow Action controller to trigger a redirect
...
- Migrate site switcher to use Stimulus approach via w-action
- Closes #10035
2023-04-18 08:30:22 +10:00
Suyash Srivastava
39fa706ff2
Update ActionController with a click method
...
- Partial change towards #10167
2023-04-18 08:04:01 +10:00
Suyash Srivastava
e72e454ba5
Migrate autosize jQuery to stimulus controller w-autosize
...
- Closes #10170
2023-04-18 05:41:00 +10:00
Lovelyfin00
cc23aa6be7
Migrated initDismissibles to a Stimulus controller w-dismissible
...
- Closes #10166
2023-04-17 23:27:24 +10:00
LB Johnston
39dfa020fe
Rename initDismissible to DismissibleController
2023-04-17 23:27:24 +10:00
Albina
935d29e2f5
Accessibility checker outlines feature ( #10176 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-04-17 09:59:55 +01:00
Thibaud Colas
a13af28aac
Fix spacing of TableBlock fields
2023-04-17 09:28:16 +01:00
Thibaud Colas
aa7ce61cef
Revise alignment, position, size of StreamField/InlinePanel/RichTextField "Add" buttons
2023-04-17 09:28:16 +01:00
Thibaud Colas
9f47052150
Add target StreamField / InlinePanel nesting highlighting effect with :has
2023-04-17 09:28:16 +01:00
Thibaud Colas
f0a5a16bf6
Implement correct indentation of StreamField and InlinePanel with nesting
2023-04-17 09:28:16 +01:00
Thibaud Colas
859d59b765
Implement vertical alignment of field inputs and panels
2023-04-17 09:28:16 +01:00
Thibaud Colas
9f23b19b17
Rework type scale according to latest designs
2023-04-17 09:28:16 +01:00
Thibaud Colas
e0f9014c91
Add missing w-field__help class to other field markup implementations
2023-04-17 09:28:16 +01:00
Thibaud Colas
b307549e3c
Use an SVG icon for rich text horizontal line
2023-04-14 08:38:01 +01:00
Thibaud Colas
6866293d4e
Styling tweaks for new icons
2023-04-14 08:38:01 +01:00
Thibaud Colas
93732690a3
Update icon visuals to FontAwesome 6, with deprecation warnings for removed icons
2023-04-14 08:38:01 +01:00
Hanoon
70a6230a65
Migrate submit translation bulk toggle to Stimulus Controller (w-bulk)
...
- Closes #10247
- adding BulkController files and removing {% block extra_js %} from submit_translation.html
- add unit tests for new controller
- partial work on CSP compliance #7053
2023-04-13 22:28:17 +10:00
Thibaud Colas
5ffb48a015
Convert workflow and page listing icons to SVG
2023-04-12 11:51:00 +01:00