Matt Westcott
57562c0f3a
Refactor an ImageChooser class out of createImageChooser
...
Use the client/src/components/ChooserWidget Chooser class as a guide, but don't copy code from there (so that any image-specific customisations don't get lost in translation)
2022-07-23 11:33:01 +10:00
Matt Westcott
870b1df5e7
Rename getStateFromHtml to getStateFromHTML
...
because that matches things like innerHTML, and it'll be annoying to change once it's used in the wild
2022-07-23 11:11:08 +10:00
Matt Westcott
6dba0cf447
Eliminate the custom response name 'documentChosen'
2022-07-23 11:11:08 +10:00
Matt Westcott
61d45e3150
Deprecate createDocumentChooser
2022-07-23 11:11:08 +10:00
Matt Westcott
049bb340c9
Make DocumentChooser a subclass of Chooser
...
Remove pretty much the entire implementation because it's identical :-)
2022-07-23 11:11:08 +10:00
Matt Westcott
b87585d044
eliminate jquery from DocumentChooser
2022-07-23 11:11:08 +10:00
Matt Westcott
96c92d4a68
Refactor a DocumentChooser class out of createDocumentChooser
...
Use the client/src/components/ChooserWidget Chooser class as a guide, but don't copy code from there (so that any snippet-specific customisations don't get lost in translation)
2022-07-23 11:11:08 +10:00
Sage Abdullah
dc525f56ae
Extract filters styles and template from report to its own component
2022-07-21 09:40:05 +01:00
Sage Abdullah
5a957a629a
Retain other query params in header search behaviour
2022-07-21 09:40:05 +01:00
anujaraj
10afd9d7ed
Add a border around modal dialogs so they can be identified in forced colors mode. Fixes #8833 ( #8874 )
2022-07-20 21:53:41 +01:00
anujaraj
df50d8a1a4
Add bottom border to messages. Fixes #8836 ( #8875 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-20 21:34:23 +01:00
Thibaud Colas
624ca4b7cc
Add missing grey-150 and teal-75
2022-07-20 12:08:47 +01:00
Thibaud Colas
c87628758c
Update documentation for custom admin colours, with live example
...
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2022-07-20 12:08:47 +01:00
Thibaud Colas
5c362bf831
Refactor all stylesheets to use CSS variables
...
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2022-07-20 12:08:47 +01:00
Thibaud Colas
758a40d650
Remove now-unneeded switch variant
2022-07-20 12:08:47 +01:00
Thibaud Colas
d43f5d7e77
Set up separate Sass-based color definitions for userbar
2022-07-20 12:08:47 +01:00
Thibaud Colas
73ce1b6f8e
Remove now-unused color variables styles
2022-07-20 12:08:47 +01:00
Thibaud Colas
8f96a5669d
Switch Tailwind color theme to use customisable CSS variables
...
Co-authored-by: Scott Cranfill <scott@scottcranfill.com>
2022-07-20 12:08:47 +01:00
PaarthAgarwal
c404acb10d
cleanup page listing styles
...
- fixes #8867
- relates to PR #8792
2022-07-20 16:27:19 +10:00
Dolidodzik
b131b4813e
replace latin abbreviations with english phrases & updated docs guidelines
...
- added sub-section to language part of general_guidelines.md
- fixes #8860
2022-07-20 16:11:38 +10:00
anujaraj
b3768a1145
Contrast themes – Update help-block styles
...
- Ensure help blocks show more appropriately in Windows High Contrast Mode with less reliance on communication via colour alone
- fixes #8817
- added dashed-dotted borders styles and removed forced-colors-adjust:none properties to/from help boxes
2022-07-20 15:47:11 +10:00
Coen van der Kamp
1b9628f06c
Add styling for Django 4 div-based radio select markup
...
- fixes #8869
2022-07-20 15:41:45 +10:00
PaarthAgarwal
0ed07c66db
adopted shared header for form submission page
...
- relates to #8539
- fixes #3759
- fixes #3236
- rename index_submissions to submissions_index (aligns with naming of all other index views)
2022-07-19 22:00:54 +10:00
Sage Abdullah
de53c7b22d
Reintroduce .form-side style edits from preview side panel
2022-07-19 06:46:11 +01:00
Sage Abdullah
c942096ab1
Remove side panel init code in page-editor.js
2022-07-19 06:46:11 +01:00
Paarth Agarwal
35b5ed350a
Adopt slim header in page listing views ( #8792 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-18 18:28:51 +01:00
sage
0693eed245
Use new modal dialog component for privacy settings modal. Fix #8478 ( #8847 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-18 10:39:50 +01:00
Paarth Agarwal
d4b37357ab
Adopted shared header for redirects listing view ( #8849 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 22:35:11 +01:00
anujaraj
8daf1554ae
Display the correct color for icons in forced colors mode. Fix #8816 ( #8852 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 15:41:59 +01:00
Paarth Agarwal
e10648ffc2
Display data for Twitter embed blocks ( #8167 )
...
Co-authored-by: Iman Syed <52247241+imansyed000@users.noreply.github.com>
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-15 14:38:03 +01:00
sage
5ee5acb7ce
Introduce a new auto-updating preview panel inside the page editor ( #8671 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-14 13:59:05 +01:00
Paarth Agarwal
6a6cb880cf
Fix typo in header icon class name ( #8831 )
2022-07-13 06:53:30 +01:00
Thibaud Colas
27ff5bfeaf
Remove button-group from ModelAdmin InspectView footer actions ( #8832 )
2022-07-13 03:11:41 +01:00
Thibaud Colas
b070ce1cd3
Add new Draftail toolbars and command palette, with new styles ( #8806 )
2022-07-13 01:35:22 +01:00
Thibaud Colas
22cf8c240d
Implement Draftail character count / max length component in meta toolbar
2022-07-11 20:35:27 +01:00
Thibaud Colas
0c4c2ff374
Implement link copy-paste processing in Draftail
2022-07-11 20:35:27 +01:00
Thibaud Colas
d30eec40a8
Update to Draftail v2 alpha
2022-07-11 20:35:27 +01:00
Shohan
7286c530e9
Snippets bulk actions ( #8574 )
2022-07-10 11:42:38 +01:00
anujaraj
3cb9b70d12
Make checkboxes visible in forced colors mode. Fix #8334 ( #8718 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-10 02:05:07 +01:00
anujaraj
3f0a648181
Make progress bars’ progress visible in forced colors mode ( #8719 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2022-07-10 00:18:39 +01:00
LB Johnston
d57021e1cc
clean up eslint for test files
...
- disable general rules to make writing tests simpler
2022-07-06 19:28:25 +10:00
LB Johnston
b66d2232d0
remove needless stylelint disables
2022-07-06 19:23:38 +10:00
LB Johnston
220fedaec9
cleanup - add noop
function for common usecase
...
- this avoids the need to add ignoring where used legitimately
2022-07-06 19:23:14 +10:00
LB Johnston
510a6bf350
utils/text - move cleanForSlug into same file & add tests/jsdoc
2022-07-06 19:22:04 +10:00
LB Johnston
0dfa39d3c5
eslint - remove react/jsx-no-useless-fragment ignoring & fix
2022-07-06 19:21:35 +10:00
LB Johnston
441a32fb22
eslint - remove react/jsx-curly-brace-presence ignoring & format
2022-07-06 19:21:35 +10:00
LB Johnston
14c4bcff68
eslint - remove anchor-is-valid ignoring & fix
2022-07-06 19:21:35 +10:00
LB Johnston
8e13985bc0
eslint - remove jsx-a11y/alt-text ignoring & fix
2022-07-06 19:21:35 +10:00
PaarthAgarwal
79a212b4b5
added prefix w- before header classes
...
- refine existing scss to use classes & remove unused scss
2022-07-06 19:13:19 +10:00
LB Johnston
cff9aac514
remove commented out css
2022-07-06 19:13:19 +10:00