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

575 Commits

Author SHA1 Message Date
sag​e
3f6cd8c18f
Fix font size for custom listing button styles (#12456) 2024-10-24 09:33:28 +01:00
Rohit Singh
105338d0d6
Fix datetime fields overflowing its parent wrapper in listing filters 2024-10-21 09:45:19 +01:00
frankyiu
97fadba582 Fix long name issue in document chooser table cell (#12430, #12431)
Fixes #12357
2024-10-20 13:47:35 +01:00
Sage Abdullah
bf139d688c
Tweak preview panel styles to accommodate more than three preview device sizes 2024-10-18 18:19:18 +01:00
Sage Abdullah
47c2c0c82e Fix color contrast of bulk actions' 'Select all' button 2024-10-17 13:33:08 +01:00
Sage Abdullah
efaa00d57c Remove action-secondary class from footer actions
It doesn't have good color contrast with the background, and these
'potentially-destructive' actions have a confirmation step anyway.
2024-10-17 13:33:08 +01:00
Sage Abdullah
5c4f83df72 Apply new footer actions styles 2024-10-17 13:33:08 +01:00
Sage Abdullah
4b54e79d7b Fix rounded border radius after closing footer actions dropdown 2024-10-17 13:33:08 +01:00
Albina
488c3583b7
'Prefers-contrast' admin theming (#12348)
Co-authored-by: Victoria Ottah <82820329+Toriasdesign@users.noreply.github.com>
2024-10-17 09:13:22 +01:00
Albina
9a7427a589
Incremental dashboard enhancements. Fix #12089 (#12233)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-10-14 14:39:39 +01:00
Ishwari8104
f86161ba00
Ensure dropdown toggles show with border in high contrast mode
Update _dropdown.scss (#12365)
2024-09-29 16:37:38 +10:00
Sage Abdullah
e6bcfb710b Remove focus-visible fallback in preview panel code
We're dropping support for Safari 15 soon
2024-09-19 08:22:54 +10:00
Sage Abdullah
8d6d772da0 Final clean up of PreviewController and usage
Move all bind() to connect()

Add renderUrl value to use different URLs for sending vs rendering preview data

Add docstrings for PreviewController properties

Rename cleared property to ready and dispatch w-preview:ready

Add events to PreviewController update lifecycle

Use zero interval delay to disable preview auto update

Rearrange PreviewController methods to better follow the update flow

Ensure only one preview iframe has the w-preview-iframe ID at a given time

This doesn't really affect how it functions, but it's semantically more correct

Ensure runContentChecks function does not crash in tests

Only clear stale data if there is a valid stale preview available

Fix preview on Firefox by not removing the only iframe

Reorder targets and values alphabetically and add JSDoc for events

Introduce w-preview__proxy class for invisible elements in preview panel
2024-09-19 08:22:54 +10:00
Sage Abdullah
db4e86a2c1 Rename preview-panel class to w-preview 2024-09-19 08:22:54 +10:00
Sage Abdullah
55d57be7c5 Initial migration of preview panel to Stimulus PreviewController
Initialise preview panel as a Stimulus PreviewController

Fix TypeScript issues in PreviewController

Use Stimulus targets for preview device size inputs

Use Stimulus target for preview panel new tab button

Use Stimulus target for preview panel loading spinner

Use Stimulus target for preview panel refresh button

Use Stimulus target for preview panel mode select

Use Stimulus target for preview panel iframe

Also rename the id to w-preview-iframe to follow our new conventions for
singleton elements

Rely on Stimulus to replace the iframe target

Because we copy all the attributes from the old iframe to the new one,
this means that the new iframe will also become a target. When we remove
the old iframe, the target is disconnected, and subsequent references to
this.iframeTarget should point to the new one.

Access the preview panel's parent side panel element via this.element.parentElement

Bind preview device size inputs using Stimulus data-action

Extract PreviewController.observePanelSize() method

Extract PreviewController.restoreLastSavedPreferences() method

Use Stimulus value for preview panel url

Use Stimulus value for preview panel pending update state

Move edit form and spinner timeout references into instance variables

Extract PreviewController.finishUpdate() method

Extract PreviewController.reloadIframe() method

Extract PreviewController.clearPreviewData() and setPreviewData() methods

Replace preview panel refresh button target with data-action

Extract openPreviewInNewTab method and use it via data-action

Do not close the preview tab if the data is not valid

Use Stimulus values for preview panel auto update config

Extract PreviewController.initAutoUpdate() method

Extract handlePreviewModeChange method and use it via data-action

Use Stimulus classes for preview panel unavailable and has-errors CSS classes

Use Stimulus class for preview panel selected input size

This removes the reliance of having a predefined set of classes for each
device name, making it easier to add support for custom sizes later.

The outline styles have also been updated to make use of focus-visible
when available.

Use hidden attribute for hiding preview panel spinner

Replace PreviewController isUpdating value with an updatePromise instance variable

Extract PreviewController.hasChanges() method

Extract PreviewController.checkAndUpdatePreview() method

Add default values for PreviewController values

Use ProgressController outlet for preview panel refresh button

This allows the use of the button-longrunning handling for the loading state.

Also, turn the button into an icon-only button as there might not be enough space when the panel is resized to the smallest size

Use cloneNode() instead of manually copying the attributes

Extract PreviewController.replaceIframe() and use it as the iframe's action

Extract PreviewController.sidePanelContainer instance attribute

Extract PreviewController.checksSidePanel instance attribute

Extract PreviewController.updateInterval instance attribute

Clean up PreviewController event listeners on disconnect

Extract preview panel device localStorage key into PreviewController Stimulus value

Extract preview panel's width CSS property names into Stimulus values

Disconnect preview panel ResizeObserver on controller disconnect

Use an instance variable for tracking preview availability
2024-09-19 08:22:54 +10:00
Sage Abdullah
f8589b3dcd Fix text alignment of model names in object permissions section 2024-08-13 19:14:54 +01:00
Sage Abdullah
aadad14ee8
Improve styles for overly long selectors in checks results 2024-07-31 11:10:49 +01:00
Thibaud Colas
a684273227 Re-instate accessibility check selectors in CMS. Fix #12157 2024-07-31 10:43:07 +02:00
Sage Abdullah
8845a8091e Improve display of editing sessions on smaller screens 2024-07-19 13:14:30 +01:00
Sage Abdullah
52cf4de58c Use lighter shade of red for unsaved changes indicator in dark mode 2024-07-19 13:14:30 +01:00
Sage Abdullah
6689c2abdd Fix warning icon filler for custom font sizes 2024-07-19 13:14:30 +01:00
Sage Abdullah
2a47ad1da2 Rename w-editing-sessions__session--latest to w-editing-sessions__session--saved 2024-07-19 13:14:30 +01:00
Sage Abdullah
756913c44d Restore ping effect for session with latest revision
Was lost when refactoring the styles to a separate component because @apply doesn't work with custom classes
2024-07-19 13:14:30 +01:00
Sage Abdullah
72934a5049 Fix spacing in editing sessions dialog buttons 2024-07-19 13:14:30 +01:00
Sage Abdullah
74c0c25f74 Fill the hole in the warning icon 2024-07-19 13:14:30 +01:00
Sage Abdullah
5de63bd1b3 Use list elements for the editing sessions list 2024-07-19 13:14:30 +01:00
Sage Abdullah
57f34ac6ed Extract editing sessions styles into its own component 2024-07-19 13:14:30 +01:00
Sage Abdullah
80480d8499 Add popup theme for tippy and DropdownController 2024-07-19 13:14:30 +01:00
Sage Abdullah
5168ee0c7c Only apply hover-opacity effect to button icons inside the default 'dropdown' theme 2024-07-19 13:14:30 +01:00
Sage Abdullah
f0569661a3 Add ping-critical animation and w-ping--critical class to use it 2024-07-19 13:14:30 +01:00
Sage Abdullah
c3cbe81a95 Rename pulse-warning animation to ping-warning and extract to its own file
Tailwind has a similarly-named 'pulse' animation that behaves differently:
it makes the element fade in and out.

Meanwhile, it has a 'ping' animation that behaves similarly to our 'pulse'
animation: https://tailwindcss.com/docs/animation

Follow the Tailwind names to avoid confusion. In the future, we might
want to implement a similar 'pulse' animation. Or, perhaps we can reuse
Tailwind's animations as-is.
2024-07-19 13:14:30 +01:00
Albina
2508b712a9
Language label fine-tunes (#12136)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-19 12:48:55 +01:00
Albina
2d568dd825
Content checks design upgrade: help text and separate cards (#12090)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-16 22:27:27 +01:00
Albina
c632832edf
Language label redesign - admin listings (#12010)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-06-26 11:18:59 +01:00
Albina
4e2afc966b
Content checks results redesign (#12019) 2024-06-17 16:25:36 +01:00
Inju Michorius
ac38343957
Remove opacity property from unpublished page titles (#12043) 2024-06-13 15:24:46 +02:00
sag​e
8ddf472e93
Partially revert listing styles changes to fix layout issues (#11936) 2024-05-17 11:44:28 +01:00
Sage Abdullah
08ee15a358 Remove --inline-actions variant of listing tables
This was added in f322e9d868, when the
snippets listing view was briefly redesigned to put the "Edit", "Delete"
etc. actions in the same line as the title instead of in a new line.

With the universal listings design, all listing actions are put inside a
three-dot dropdown menu.

This style is no longer used anywhere in Wagtail, especially now that
the HistoryView has been reimplemented using the dropdown menu for the
actions.
2024-04-30 16:13:33 +01:00
Sage Abdullah
b8dd7f484f Fix icon alignment in page listings 2024-04-30 16:13:33 +01:00
Thibaud Colas
d04746bf9e Adjust admin UI components based on desired interface density 2024-04-18 13:04:25 +01:00
Thibaud Colas
bd6f314b87 Refactor CSS selectors in title panel override for readability 2024-04-18 13:04:25 +01:00
sag​e
c1a23b4bd3
Tweak styles for w-header-button to better match the designs (#11863) 2024-04-18 12:29:01 +01:00
Sage Abdullah
bb12877f79
Use tables component in users index view
This also allows us to reuse the "..." more button for each listing item
instead of the inline buttons.
2024-04-09 08:54:48 +07:00
Sage Abdullah
0006976267 Implement universal listings UI for form submissions listing view 2024-04-05 17:36:41 +01:00
Sage Abdullah
c8686cc7e9
Apply suggestions from code review 2024-04-02 16:40:27 +07:00
LB Johnston
e71e947046
Add base styling for footer actions to support simple customisations
- Fixes #11629
- Relates to clean up done as part of #11629 which removed a lot of styling for footer actions which appeared to be unused.
- Re-add some base styling to support the ability for basic customisations where buttons are added within the `extra_footer_actions` block.
2024-04-02 12:29:24 +07:00
Karthik Ayangar
bb5b253ef1 Add basic keyboard shortcuts dialog
Include the ability to trigger the dialog from the sidebar
Include base styling and unit tests
Fixes ##11711
Relates to larger work for keyboard shortcuts in #3949
2024-03-16 16:59:26 +10:00
Chiemezuo
aebdf82387 Ensure that dropdown content will be scrollable if content is too high
Fixes #11108
2024-03-14 07:28:27 +10:00
Sage Abdullah
88fad9a071
Show full label for non-page listings HeaderButton
In the new designs, listings other than the page listings should show
the complete label for the main header button.

The page listing only shows the icon because much of the space is taken
by the side panel toggles.

The page listing's header button hasn't been refactored to use the
HeaderButton class, hence there is no changes to the page listings code
in this commit.
2024-03-11 09:55:41 +00:00
Sage Abdullah
420723c174
Move 'sort by' select element in images listing to the slim header
This uses a custom header template that extends the slim_header.html

We could do this without the custom header template, but this would mean
the slim_header.html will accept yet another variable (extra_form_fields),
which we are trying to avoid to prevent it from accepting so many variables
like header.html.

This is especially since this "extra fields" block is only needed for the
images listing (at least for the foreseeable future).
2024-03-11 09:55:41 +00:00