0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
Commit Graph

1358 Commits

Author SHA1 Message Date
Thibaud Colas
40335ba9d1 Add tests to help with maintenance of theme color tokens 2023-06-12 10:55:12 +01:00
Thibaud Colas
fb793f2b4b Remove all unused color tokens 2023-06-12 10:55:12 +01:00
Thibaud Colas
e0f3f05ffd Remove usage of color tokens which are duplicates 2023-06-12 10:55:12 +01:00
LB Johnston
aa9e9cddc7 Resolve multiple typos (spelling and grammar)
- Optimized/Customized/Catregorize -> Optimised/Customised/Categorise
- Github -> GitHub (80% were spelt with capital H, this is the way GitHub spells itself)
- GitPod -> Gitpod (most were without the capital P, Gitpod's site does not use capital P)
- Remove duplicate words (to to, the the)
- De-coupled -> decoupled
- implementors -> implementers (all other references used 'site implementers' so just aligning with the common case)
- Fix a/an usage in one case
- Fix one comment usage of ok, replace with OK
2023-05-30 21:07:37 +10:00
Thibaud Colas
6bb7e129b6 Fix color contrast of red error messages in dark mode 2023-05-25 08:36:49 +01:00
Thibaud Colas
7cb23a00d9 Simplify rich text commenting color styles for dark mode compatibility 2023-05-25 08:36:49 +01:00
Thibaud Colas
b920ced26d Fix text color for time picker options 2023-05-25 08:36:48 +01:00
Thibaud Colas
56f97890da Fix hover styles for secondary buttons in listings 2023-05-25 08:36:30 +01:00
Thibaud Colas
de12dbbd4e Remove unneeded border for footer actions 2023-05-25 08:36:30 +01:00
Thibaud Colas
ed13e0f7e8 Fix text color for selected / highlighted items in chooser modal listings 2023-05-25 08:36:30 +01:00
Thibaud Colas
cf116f90cf Fix close button appearances in choosers & dialogs 2023-05-25 08:36:30 +01:00
Thibaud Colas
13df497014 Use the correct hover color for form panel icons 2023-05-25 08:36:30 +01:00
Thibaud Colas
4d4feb2ca0 Fix switch component having a white border in dark mode 2023-05-25 08:36:30 +01:00
Thibaud Colas
aca7159b45 Re-add distinctive borders in page explorer 2023-05-25 08:36:30 +01:00
Thibaud Colas
91f2e18b22 Update focus color to a shade that works better in dark mode 2023-05-25 08:36:29 +01:00
Sage Abdullah
a29d573af8 Remove comment button on InlinePanel fields 2023-05-23 08:22:53 +01:00
sag᠎e
f8a9ddff09
Move comment notifications toggle to the comments side panel (#10437)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-05-22 10:56:15 +01:00
Thibaud Colas
efb75c0ae3
Ensure comment buttons always respect WAGTAILADMIN_COMMENTS_ENABLED. Fix #10406 2023-05-17 10:49:16 +01:00
Matt Westcott
8b32acb2ad add mock for updateSettings when testing TableBlock 2023-05-15 15:29:11 +01:00
Sage Abdullah
31948fc9db Fix TableBlock resize target selector
Fixes #10427.

In d51ec00ce1, the target was changed from
'[data-field] > .handsontable' to '.handsontable', as the .handsontable
element is no longer a direct descendant of the [data-field] element.

However, this means that we're marking ALL elements with .handsontable
as resize targets, which is not ideal as pretty much all elements
generated by Handsontable have that class.

The original logic would presumably only select the outermost element
with the .handsontable class, which is equal to the element with the
foo-handsontable-container ID (we store this in the containerId
variable).

Frankly, removing this selector outright would also fix the issue. That
said, let's keep this selector in anyway, to match the logic in older
releases.
2023-05-15 14:39:06 +01:00
Sage Abdullah
b42e934449 Fix incorrect check of Handsontable size options
Regression in 933a730928 introduced in 4.2.

This causes the discrepancy seen between 4.1 vs 4.2 (and later). In 4.2,
this check was broken, which means the event handler never gets added.

The combination of the event handler and the incorrect selector (fixed
in the next commit) would resize all Handsontable elements, resulting in
the bug where the table cannot be interacted with.

The commit b9f8a6b6c0 fixed another cause
of the issue, which was calling `resizeWidth(getWidth())`. The
getWidth() function should only be used to set the Handsontable's
settings, while resizeWidth should be called with '100%' as done within
the event handler.

However, seeing that the event listener is not even attached in 4.2
onwards, dispatching the resize event might not be necessary and
Handsontable might already handle this correctly. That said, let's
avoid making other changes that could potentially cause issues.

With this commit, the bug should reappear in 4.2 and later releases,
making it consistent with 4.1. The bug will be fixed in the next commit.
2023-05-15 14:37:45 +01:00
LB Johnston
c9a51968a8 Count Controller unit tests - avoid dupe body
- body element used but already appending to document.body
2023-05-12 17:09:13 +10:00
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
sag᠎e
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
sag᠎e
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
sag᠎e
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