Sage Abdullah
87e868d315
Move preview_settings to wagtail_config template tag
2022-11-11 14:18:12 +00:00
Sage Abdullah
ff8a33733c
Use CSRF_HEADER_NAME from global config for preview panel DELETE request
2022-11-11 14:18:12 +00:00
xomcodes
4eb720b6c6
Move initTagField from core.js to initTagField.ts
...
- Add JSDoc & unit tests for pulled out includes file
- Fixes #9496
2022-11-11 08:08:39 +10:00
Thibaud Colas
77a63c224f
Make sure minimap error indicators follow the minimap scrolling ( #9624 )
2022-11-10 08:31:00 +00:00
FatumaA
d4792785b8
Refactor - convert initTooltips to TypeScript, add JSDoc & tests
...
- Fixes #9505
2022-11-10 07:34:43 +10:00
Seremba
dcd8148dfe
Style default secondary buttons with icons
...
- Style secondary button with icon to match according to Wagtail Design System
- Fixes #9198
2022-11-10 07:24:27 +10:00
Albina Starykova
d36790640e
Remove unnecessary box-sizing: border-box declarations
...
- box-sizing: border-box added to all elements globally in #8921
- Relates to #9031
2022-11-10 06:52:09 +10:00
Lovelyfin00
933a730928
Removed no-prototype-builtins rule from eslintrc and fixed minor additional issues
2022-11-10 06:40:40 +10:00
Lovelyfin00
67c7f82de5
Create a util hasOwn
to simplify object property checks
2022-11-10 06:40:40 +10:00
mohammadareeb95
66f2512ef5
Ensure links that have .nolink (current link) can be seen in WHCM
...
- Fixes #9578
2022-11-09 22:55:03 +10:00
AdeboyeJuliet
c225172c1f
fix:Tippy tooltip arrows render as rectangles in WHCM
...
- Fixes #8835
2022-11-09 22:12:57 +10:00
Albina Starykova
b1c4ca5489
Fix tag field styles in WHCM
...
- Fixes #9529
2022-11-09 21:45:50 +10:00
AdeboyeJuliet
f41a219697
Migrate initSkipLink to typescript, add unit tests & JSDOC
...
- Additionally clean up the exports and imports to be sorted & align with named export usage
- Fixes #9541
2022-11-09 21:25:53 +10:00
Dev-Yusuf
c2ba84e825
Resolved the skip link contrast issues to meet requirements
...
- Update client/scss/components/_skiplink.scss
- fixes #9515
2022-11-09 21:17:37 +10:00
LB Johnston
55f5cad7f2
Ensure the ngettext (JS) util emulates the Django global if not present
...
Follow up from #9617
2022-11-08 09:09:45 +10:00
Lovelyfin00
0000ed88f7
removed unused styles from utility.legacy.scss file and clean up
...
- `divider-before` not used
- add w-list-none to Tailwind utility classes
- remove now unused unlist class
- relates to #8947
2022-11-08 08:45:23 +10:00
LB Johnston
da36c3994b
Rename test file - #9593
2022-11-08 08:38:56 +10:00
Lovelyfin00
b1c1618c9b
Migrated initButtonSelects from core.js to own includes file
...
- removed initButtonSelects from core.js , migrate to Typescript & and wrote test for it
- Fixes #9494
2022-11-08 08:28:59 +10:00
Matt Westcott
5703bc1133
Fix disabled style on StreamField add button
...
Fixes #9512
An `opacity: 0.2` style is defined for the disabled button state, but the `opacity: 1` hover style takes precedence over it. As a result, the only time it kicks in - on media with hover support - is when the StreamField does NOT have hover / focus, which would ordinarily be the time when the button is hidden entirely.
Fix this by adding hover states to the `&[disabled]` case, to match the order of precedence for the normal button state.
2022-11-07 12:24:54 +00:00
Theresa-o
0ebdd51882
Fix help block <a> to meet colour contrast guidelines
...
- Fixes #9569
2022-11-07 19:56:36 +10:00
LB Johnston
acd412e8f3
Update gettext unit tests to clearly test their functionality
...
- instead of mocking the Django global functions, test each function's export that it correctly uses the global if present or test the default behaviour
2022-11-07 19:51:13 +10:00
LB Johnston
e609f15a93
Ignore test files from extract-translatable-strings
...
Avoid unit test translation usage from being added to translation strings
2022-11-07 19:51:13 +10:00
LB (Ben Johnston)
f6a35268c7
cleanup - remove commented out scss in _listing.scss ( #9619 )
2022-11-06 23:27:05 +01:00
Yekasumah
aeae816b27
Fix comments notice background overflow ( #9567 )
2022-11-04 18:24:13 -04:00
Jordan-Rob
9c29e6a12e
Remove duplicate code to escape HTML in JavaScript
...
* added an import for escapeHtml from utils/text and added back window.escapeHtml = escapeHtml
* Fixes #9492
2022-11-02 06:41:14 +10:00
Thibaud Colas
b7c04ed960
Avoid force-scrolling the minimap when unneeded
2022-10-31 23:09:58 +00:00
Thibaud Colas
3e2cbea51a
Ignore "collapse all" for minimap hover reveal
2022-10-31 23:09:58 +00:00
Thibaud Colas
769d3e2340
Add animated transition for minimap reveal
2022-10-31 23:09:58 +00:00
Thibaud Colas
8679d29233
Fix minimap toggle button remaining visible when closing
2022-10-31 23:09:58 +00:00
Thibaud Colas
24f432dfb4
Fix legacy dropdown buttons using a different size from toggle. Fix #9476 ( #9551 )
2022-10-31 16:06:33 +00:00
Matt Westcott
d8ff3cbcf2
Fix JS string extraction for ngettext
...
The definition for ngettext in extract-translatable-strings had incorrect argument positions, and as a result strings translated with ngettext were missed from the .po file.
2022-10-28 11:30:19 +01:00
Matt Westcott
b848254873
Apply correct pluralisation to minimap error count
...
Fixes #9497
2022-10-28 07:20:03 +10:00
Sage Abdullah
78a7652f6b
Move scheduled publishing dialog root to editor form element
2022-10-27 17:39:51 +01:00
Lovelyfin00 (Nutjob)
bd62927958
Ensure logo shows correctly on log in page in Windows high contrast
...
- Added a class to the logo image and also added forced mode to the logo image class
- Fixes #9428
2022-10-27 08:29:09 +10:00
xomcodes
3dcde23e02
Fixed auth form field padding (Log in / password reset)
...
- Fixes #9440
2022-10-27 08:01:08 +10:00
Mary Ojo
aea9f14558
Fix status tag font-size units for proper resizing ( #9382 )
2022-10-23 13:56:55 -04:00
Albina Starykova
bd13f567fe
Ensure visual consistency between buttons and links as buttons in WHCM
...
- Fix secondary-button disabled state
- Fix legacy dropdown in WHCM
- Fixes #9078
2022-10-21 08:35:12 +10:00
Lovelyfin00 (Nutjob)
91de7a126d
Ensure authentication forms have a visible border in Windows high contrast mode
...
- fixes #9350
2022-10-20 23:01:30 +10:00
Lovelyfin00
86437515a3
Make sure workflow timeline icons are visible in high-contrast mode. Fix #9349 ( #9383 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-19 21:35:05 +01:00
Thibaud Colas
52e55a7c46
Implement new minimap component for forms with side panels. Fix #8673 ( #9345 )
2022-10-17 18:52:09 +01:00
Sage Abdullah
0a0e07abc0
Add help menu with dismissible badges
...
By default, the menu contains a link to a blog post
showcasing features in Wagtail 4.1 and a link to the editor guide.
We need to update the links and labels manually in the next release.
2022-10-17 17:39:37 +01:00
Sage Abdullah
28ed884581
Add WhatsNewInWagtailVersionPanel to home dashboard
...
Can be disabled via WAGTAIL_ENABLE_WHATS_NEW_BANNER setting.
We need to update the link and content in the next release if necessary.
2022-10-17 17:39:37 +01:00
Sage Abdullah
b115e03d28
Add view and client script for Dismissibles
2022-10-17 17:39:37 +01:00
Sage Abdullah
34a79d36ad
Add attrs to base MenuItem class and default it to empty dict
2022-10-17 17:39:37 +01:00
Sam Moran
45f0c73ff4
Update version.js to accept dev build version format
...
- fixes #9184
2022-10-17 22:06:08 +10:00
Steve Stein
5112c0eaa8
Improve side panels’ resizing in page editor and listings, and breadcrumbs alignment. Fix #9036 ( #9090 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-10-17 12:18:02 +01:00
Matt Westcott
c165814311
Fix focus handling when blocks are inserted with animation
...
Calling focus() on a block immediately after inserting it with animate:true has been broken since d3e58f7908
, since the field only becomes focusable once the animation begins. Address this by adding a new 'focus' option to the BaseSequenceChild constructor and related insert methods, to indicate that the block should be focused as soon as it becomes available.
2022-10-14 18:36:08 +01:00
Matt Westcott
e0266c276a
Don't split block when inserting a new block at the end
2022-10-14 18:34:05 +01:00
Matt Westcott
6885eedb52
Pass widget instance to command classes
2022-10-14 18:34:05 +01:00
Matt Westcott
e635daf5a3
Move split command into its own class
2022-10-14 18:34:05 +01:00