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

849 Commits

Author SHA1 Message Date
Stefan Hammer
906dfa2773 Added missing gettext calls to the CommentComponent 2022-05-25 20:45:09 +10:00
Matt Westcott
a67fd85fcf Rename reshow_upload_form step on document chooser to reshow_creation_form
We'll standardise on this name, since not all creation forms involve uploads.
2022-05-25 20:10:47 +10:00
Matt Westcott
34f646c611 Move reshow_creation_form step handling into the base ChooserModalOnloadHandlerFactory 2022-05-25 20:10:47 +10:00
Matt Westcott
29fbfd0ea4 Move ajaxifyDocumentUploadForm logic into the base ChooserModalOnLoadHandlerFactory 2022-05-25 20:10:47 +10:00
Matt Westcott
c5d6bb32e5 Use data-chooser-modal-search-filter attribute to identify the snippet locale filter 2022-05-25 20:10:47 +10:00
Matt Westcott
b45d2a0973 Adopt a standard data-chooser-modal-search attribute to identify the search form 2022-05-25 20:10:47 +10:00
Matt Westcott
b958585ff8 Add a containerElement option to SearchController to limit scope of selectors
This will allow us to use more generic selector names without risking false matches. While we're at it, consistently use containerElement as the variable name for this rather than context, because context typically refers to template context dictionaries.
2022-05-25 20:10:47 +10:00
Matt Westcott
910ca8ca51 Change document chooser step names to 'choose' and 'chosen' for consistency with snippet chooser 2022-05-25 20:10:47 +10:00
Matt Westcott
b37d16b07b Adopt a standard data-chooser-modal-choice attribute to identify 'chosen' links 2022-05-25 20:10:47 +10:00
Matt Westcott
b5746c386b Convert document chooser modal onload handlers to a subclass of ChooserModalOnloadHandlerFactory 2022-05-25 20:10:47 +10:00
Matt Westcott
0ac07eba5e Introduce a factory class for generating the onload handlers 2022-05-25 20:10:47 +10:00
Matt Westcott
6b30a1aae9 Use SearchController on task chooser modal 2022-05-25 19:00:50 +10:00
Matt Westcott
fc31a6711d Use SearchController on snippet chooser modal 2022-05-25 19:00:50 +10:00
Matt Westcott
1fc66294a4 Move snippet-chooser-modal.js to client js 2022-05-25 19:00:50 +10:00
Matt Westcott
2af6ad3683 Use SearchController on document chooser modal 2022-05-25 19:00:50 +10:00
Matt Westcott
6e9660c67b Add a reusable helper function for submitting creation forms 2022-05-25 19:00:50 +10:00
Matt Westcott
d311a40e27 Use gettext for server error messages in modals
This avoids the need to pass them in jsonData (which was broken in a few cases anyhow, since we were forgetting to pass jsonData to the ajaxify function)
2022-05-25 19:00:50 +10:00
Matt Westcott
9aa672c01c Add a get_value_data method to AdminTaskChooser for consistency with others 2022-05-25 16:32:07 +10:00
Matt Westcott
55fdafdfe6 Make radio buttons / checkboxes display vertically under Django 4.0
Fixes #8190
Django 4 changed the rendering of radio button / checkbox lists to nested divs rather than ul/li - see 5942ab5eb1. This change simply applies the existing li styles to second-level divs.
2022-05-25 08:31:11 +10:00
Matt Westcott
820c27fca9 lint fix for dialog.js
I'm guessing this was caused by #8541 and #8543 being merged in close succession...
2022-05-20 16:55:06 +01:00
LB (Ben Johnston)
7c9b6fd415
Cleanup - eslint config fixes (#8543)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 16:08:13 +01:00
Steve Stein
6343a9558c
Implement new reusable dialog component with a11y-dialog (#8541)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 15:02:32 +01:00
LB (Ben Johnston)
9f206d258c
Make it possible to reuse and customise Wagtail’s fonts with CSS variables. Fix #8406 (#8544)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-05-20 14:19:30 +01:00
Karl Hobley
2a40333770 Set referer policy of upgrade notifcation to "strict-origin-when-cross-origin"
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
- Since Django 3.1, all Wagtail admin responses have been given a referer-policy: same-origin header. See: https://chipcullen.com/django-3-referrer-policy-change/
2022-05-19 08:37:25 +10:00
Steve Stein
851ec9a5c1 Apply full header breadcrumb spacing fixes for all templates (#8471, #8491) 2022-05-13 17:09:01 +01:00
Matt Westcott
2da1a051c7
Make 'upload one now' link on document chooser work after results refresh (#8529)
* Make 'upload one now' link on document chooser work after results refresh

Fixes #8528
Put the initTabs call inside ajaxifyLinks so that it's reapplied when the results container (including the 'no results message') is replaced.

* Make 'create one now' link on task chooser work after results refresh
2022-05-13 12:13:36 +01:00
LB Johnston
d9981e0ec7 fix up spelling in documentation & docstrings (should be en-GB not en-US)
- customize -> customise
- color -> colour
- customizing -> customising
- organize -> organise
2022-05-13 08:13:06 +10:00
Matt Westcott
7d8d900d10
Set comment position correctly relative to scroll position (#8511)
Fixes #8500. As a consequence of the CSS changes in c6fdb6bbb3, scroll position is no longer reflected in the document element's scrollTop property, but on the `<main>` element instead. As a result, comment positions were not being adjusted for scroll position. To account for this (and any future CSS changes), we walk all ancestor elements to calculate the true scroll position.
2022-05-12 14:11:47 +01:00
Thibaud Colas
7129ccefc9 Remove logical properties compatibility styles for Safari 13
- update caniuse-db & browserslist
- resolves #8124
2022-05-11 21:41:15 +10:00
jacobtoppm
7e98db7197 Disable webpack css url rewriting
This was causing relative urls to be rewritten to use the publicPath.
This meant that the icon font would be referenced at the wrong location
if sites had changed STATIC_URL
fixes #8517
2022-05-11 19:27:49 +10:00
Thibaud Colas
74ed301562 Fix cropped descenders in sidebar 2022-05-10 16:56:08 +01:00
Thibaud Colas
5afbd6371a Adjust branding spacing in sidebar 2022-05-10 16:55:37 +01:00
Steve Stein
95fcddd9d2
Switch locales selector JS error (#8468). Fix #8466, #8462
* Check for hover tool tip instance to avoid throwing errors

* Remove multiple attr because it is un-needed now
2022-05-06 16:10:09 +01:00
Thibaud Colas
d4f6e81067 Fix last integration test failure 2022-04-29 14:43:45 +01:00
Steve Stein
bb083e4463
Status sidebar design review and fixes (#8445)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-29 14:38:53 +01:00
LB (Ben Johnston)
30e1e06a59
Make new font stacks available as css custom properties (3.0) (#8415)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-29 14:23:55 +01:00
Steve Stein
e8c8ae778f
Allow external tab triggers - Underline tab issue (#8454)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-29 14:21:54 +01:00
Thibaud Colas
28c6a96de8
Separate tab focus and selection to avoid always setting URL hash (#8460) 2022-04-29 14:01:13 +01:00
Thibaud Colas
03bbc2c747
Page explorer regression fixes (#8459) 2022-04-29 14:00:19 +01:00
Steve Stein
20d9fd145e
Design review updates - Remove tab animation, adjust tab spacing and high contrast support, sidebar alignment (#8452) 2022-04-29 13:51:42 +01:00
Karl Hobley
ad8e8034da
Header styling tweaks (#8438)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-29 12:59:52 +01:00
Thibaud Colas
64d99d5f57 Fix failing unit tests from #8447 2022-04-29 12:06:44 +01:00
Steve Stein
815f621df4
Resize textareas onload and tab-changed event (#8442) 2022-04-29 11:37:20 +01:00
Thibaud Colas
d2aefa547c
Re-add Pages explorer focus trap. Fixes #8035 (#8447) 2022-04-29 11:33:29 +01:00
Steve Stein
8efb235695
Restyle badge for tab errors (#8446) 2022-04-28 13:49:54 +01:00
Steve Stein
7756453849
Breadcrumbs & Slim header design review styling (#8434)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-04-28 13:25:59 +01:00
Steve Stein
db5f4106db
Sidebar animation fixes (#8423). Fix #8311
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>

- Animations – The close animation for sub-menus doesn't seem to play when the menu is expanded - Made it so sub menu's stay open when the menu is expanded and collapsed
- Animations – The account menu seems to have a different tween animation to the rest of the menu. Causing it to do a weird thing when you collapse the menu while the account menu is open
- Animations – The avatar suddenly jumps to the right when you collapse the menu
- Animations – The Bird seems to have two hover states (try slowly moving your mouse cursor from top to bottom and you'll see it's wing appears before the hover animation is triggered). Not sure if this is intended behaviour.
- Accessibility – Focus order is incorrect on the mobile version (it should be possible to move to the sidebar after having toggled it)
- Try and fit more letters in to the sidebar menu items by reduce the padding / margin on the right side of the arrow, and reduce the gap between the icon and the text a tiny bit
- Make it so when you have a menu open (e.g. Bakery misc) and you click the slim sidebar icon, the menu stays open as the menu gets slim.
- Add a label to the sidebar’s `<aside>`
2022-04-28 02:14:18 +01:00
Tidiane Dia
94b20b418a
More actions dropdown button toggling on bulk actions (#8057)
* Hide more actions dropdown button on listing pages when performing actions in bulk

* Add toggleMoreActionsDropdownBtn function

* Fix lint issues

* Use if/else statement instead of ternary operator to avoid lint warning
2022-04-25 14:53:13 +01:00
Thibaud Colas
1cd784adb7 Add basic "multilingual support" section 2022-04-23 01:05:27 +01:00
Thibaud Colas
a395d9c565 Auto-generate docs for most important design tokens 2022-04-23 01:05:27 +01:00