0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 19:17:48 +01:00
Commit Graph

622 Commits

Author SHA1 Message Date
Coen van der Kamp
8deaf401f4 Reposition bottom add row button, add bin icons 2021-10-15 14:20:56 +01:00
Coen van der Kamp
3f3f3fe319 Make remove buttons red 2021-10-15 14:20:56 +01:00
Coen van der Kamp
516f0dd7e1 Add table wrapper, makes any number of columns possible 2021-10-15 14:20:56 +01:00
Matt Westcott
39978caf53 Revert to initial empty state after removing all columns 2021-10-15 14:20:56 +01:00
Matt Westcott
1b3baaf975 Change 'insert here' tooltips to 'insert' 2021-10-15 14:20:56 +01:00
Matt Westcott
83871f641e CSS tweaks as per https://github.com/wagtail/wagtail/pull/7470#issuecomment-941369676 2021-10-15 14:20:56 +01:00
Matt Westcott
a6649c0080 Add frontend tests for TypedTableBlock 2021-10-15 14:20:56 +01:00
Matt Westcott
3753b7a9e4 implement getTextLabel 2021-10-15 14:20:56 +01:00
Matt Westcott
33e015d1e7 Implement focus 2021-10-15 14:20:56 +01:00
Matt Westcott
d41dcd6381 styling for add-column menu 2021-10-15 14:20:56 +01:00
Matt Westcott
cdf8e9d409 Improve consistency of buttons 2021-10-15 14:20:56 +01:00
Matt Westcott
0270e769d6 Add title text for 'add column' button 2021-10-15 14:20:56 +01:00
Matt Westcott
6abca18817 Make strings translatable 2021-10-15 14:20:56 +01:00
Matt Westcott
4706daf274 Button style/positioning 2021-10-15 14:20:56 +01:00
Matt Westcott
62ead9a1fb Implement validation 2021-10-15 14:20:56 +01:00
Matt Westcott
bef6ffb64e Implement row insertion 2021-10-15 14:20:56 +01:00
Matt Westcott
bb57efc77a Implement row deletion 2021-10-15 14:20:56 +01:00
Matt Westcott
cc1e8282c0 Add hidden fields to keep track of row ordering and deletion 2021-10-15 14:20:56 +01:00
Matt Westcott
b78c658e0f Refactor this.rows so that each element is an object, and the list of blocks is just one property of that object 2021-10-15 14:20:56 +01:00
Matt Westcott
25652970a9 Add a trailing cell to each data row that will contain the 'delete row' button 2021-10-15 14:20:56 +01:00
Matt Westcott
76ef050146 Implement button for inserting column in any position 2021-10-15 14:20:56 +01:00
Matt Westcott
886bce0d0f implement button for deleting columns 2021-10-15 14:20:56 +01:00
Matt Westcott
9ee21b9c9c Add hidden fields to keep track of deleted columns 2021-10-15 14:20:56 +01:00
Matt Westcott
8bd1801103 Add hidden field for column ordering 2021-10-15 14:20:56 +01:00
Matt Westcott
caefa52941 Add a hidden field for column type 2021-10-15 14:20:56 +01:00
Matt Westcott
da14ebaf7c implement setState 2021-10-15 14:20:56 +01:00
Matt Westcott
44d89d330d Add header inputs 2021-10-15 14:20:56 +01:00
Matt Westcott
2b76ce0db0 correct initialisation of cell ID prefixes and initial state 2021-10-15 14:20:56 +01:00
Matt Westcott
614c23c9a0 Typed table block - initial block class and client-side mechanism for adding columns/rows 2021-10-15 14:20:56 +01:00
Thibaud Colas
b56d27d1a1 Fix checkboxes appearing as always checked in Windows high contrast mode 2021-10-15 06:59:51 +10:00
Thibaud Colas
c46001604b Improve checkbox keyboard focus styles without changing page layout 2021-10-15 06:59:51 +10:00
indreshp135
6e90c877ec fix issue with __prefix__ in nested inline panel
changed following:
change only first __prefix__ when multiple __prefix__ are present in
same name when orderable and blocks are nested

Co-authored-by: anirudhvs <54744932+anirudhvs@users.noreply.github.com>
Co-authored-by: CaptainIRS <36656347+CaptainIRS@users.noreply.github.com>

- fixes #7587
- fixes #5770
2021-10-13 07:37:27 +10:00
Sakshi Uppoor
da1e4d9a99
Fix toggle switch bug in high-contrast mode (#7561)
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2021-10-08 22:32:55 +01:00
Jérôme Lebleu
5522992c29 Use SVG icons in StreamField buttons and headers
- Simplify rendering of .c-sf-button and its elements
- replaces the rendering of `.c-sf-button` as a flexbox by a simple
- block element - as it is enough here - and moves text related rules to the <button> element.
- Use SVG icon in StreamField's action buttons
2021-10-07 17:04:13 +10:00
Dmitrii F
932762c9f1 windows high contrast mode - multiple fixes
- fix search header field border in Windows High Contrast mode
- fix tab-nav active in Windows High Contrast mode
- add border for c-sf-button. This fix view in WHC mode.
- add justify-content - center for better view on mobile devices.
2021-10-07 15:59:14 +10:00
Matt Westcott
718232ead4 Better styling for snippets 'last updated' link 2021-10-04 13:49:55 +01:00
Desaiakshata
997ac738b0 dropdown - improve focus and high contrast mode visibility
- Update _dropdown.legacy.scss
- improvement to existing styles for dropdown/up button on focus and windows high contrast mode
- see #7366
2021-09-30 08:12:00 +10:00
Matt Westcott
0380f01b24 Allow specifying a format for the label of a collapsed StructBlock
Currently, the label shown for a StructBlock's collapsed representation takes its content from the first sub-block of the StructBlock, which isn't always what you want. Add a new `label_format` meta option to StructBlock to allow customising this - e.g. `label_format = "Profile for {first_name} {surname}"`
2021-09-27 19:07:14 +01:00
Storm Heg
19ad01ddd5 Fix userbar tabbing behaviour
Tabbing (navigation using Tab or Shift + Tab keys) will now close
the menu and move to the next focusable element on the page instead
of focusing the next menu item.

The previous behaviour was a deviation from the ARIA menu practices:
https://w3c.github.io/aria-practices/#menu

Further changes / cleanup:

* Consume keyboard events like arrow down to prevent the browser
  from interpreting them.
* Refactor repeated setTimeout and `.focus()` calls into single
  `focusElement(el)` function. Let's keep it DRY!

Fixes #7290
2021-09-19 14:46:28 +10:00
amychan331@yahoo.com
218e728f34 Make hamburger menu a button for tab accessibility
- Adding type to button element
- Co-authored-by: Dan Braghis <dan@zerolab.org>
- fixes #7327
2021-09-19 14:18:34 +10:00
Andrew Stone
7d9e90fdbd Ensure admin tab events are handled on page load
The `shown.bs.tab` event was being bound after showTab() was already
called, so on page load, the tabs weren't being updated correctly.
2021-09-10 07:06:59 +10:00
Krzysztof Jeziorny
cf064f2b99 Fix width on comment notifications dropdown
- Other languages' word can break the dropdown's layout
2021-09-07 20:54:43 +10:00
Desaiakshata
22cdd89b68 Fix Window high contrast mode - tag field
-edit background color for form input field-forced color mode
2021-09-07 20:11:00 +10:00
Karl Hobley
45b7788c6d
Completely hide sidebar in mobile mode (#7481)
* Add bars.svg icon

* Add Open/Close button for mobile mode

* Completely hide sidebar in mobile mode

* mobile state tweaks

* Rename 'open' to 'visibleOnMobile'
* Don't initialise 'collapsed' state based on screen size (old code)
* Remove main.sidebar--open (not used)

Co-authored-by: Storm Heg <storm@stormbase.digital>
2021-09-02 16:38:03 +01:00
Matt Westcott
17e8fc22eb Refactor helper methods in chooser.py
JS context variables are only needed in one place now
2021-09-01 20:46:41 +10:00
FDGod99
c2347a6d35 fix - high-contrast mode - sidebar needs visual separation
- Due to how high-contrast mode works, there was no visual separation between the sidebar and the main content, adding a transparent border resolves this without having any visual impact in non-high contrast mode
- fixes #7456
2021-09-01 08:02:42 +10:00
Karl Hobley
bb7620f445
Frontend improvements for new slim sidebar (#7469)
* Fix left padding not changing fast enough

* Make all icons stay in a fixed Y position

So they don't move when you hover

* Make the Wagtail a bit bigger in collapsed mode

* Fix position of search icon when expanding/contracting menu

* Animation refinements

* Fix gap between icon and text changing for legacy icons during collapse

* Only peek the menu if the mouse hovers over a menu

This fixes an issue where peeking wouldn't happen if you collapsed the
menu and then hovered over a menu item without the mouse leaving the
sidebar. It now always peeks when the user hovers the menu item.

But we still want to avoid it peeking when the user clicks the collapse
button, so I've moved the mouse enter/leave handlers to a sub-element
that doesn't include this button.

* Peek the sidebar on focus

Allows the sidebar to open when it receives keyboard focus, and stops it
annoyingly closing while you are typing a search query.

* Remove the start peeking timeout
2021-08-31 12:00:29 +01:00
fabienheureux
cb08c997ea
Make all edit panels collapsible (#7365)
* Make more panels type collapsible
* Remove duplicate js in homepage template
* Move collapsible code into its own js file
* Change $li to $target in collapsible.js, as in #6342

Closes #7364, #6342, #6187, #2123

Co-authored by: Fabien Le Frapper <contact@fabienlefrapper.me>
Co-authored-by: Robbie Mackay <rm@robbiemackay.com>
Co-authored-by: Scott Cranfill <scott.cranfill@jpl.nasa.gov>
2021-08-30 08:33:43 -07:00
Seb
a9f13d2dfb Apply list styles for MultipleChoceFields 2021-08-24 08:34:40 +10:00
Dmitrii Faiazov
fb66c1fd17 Styling for Windows high contrast
- add media queries for icons & logos
- fix issue with color problems
2021-08-23 20:15:08 +10:00