David Cook
8ff67aca41
Disable filters and sorting when form is modified
...
Stimulus controllers aren't supposed to reach outside their own element (so we can't do this with targets). Perhaps the controller should be bigger to encompass more, but I wanted to see if I could avoid making a mega component that does everything. For now it seems appropriate just to pass a selector in.
Another option is to publish events on other controllers using Outlets, but I don't know if we need to go there just yet.
2023-09-15 15:45:48 +10:00
David Cook
e047f49998
Make form actions float over sort controls.
2023-09-15 15:45:48 +10:00
David Cook
18e40bebd0
Mark modified fields
2023-09-15 15:45:45 +10:00
David Cook
0966864589
Merge pull request #11511 from dacook/fix-update-button-11349
...
Fix Update button sizing
2023-09-14 13:37:19 +10:00
David Cook
2e6e083667
[fixup] Fix Update button sizing
...
By disabling line wrap we can consistently predict how it will appear. The longest translation we currently have is 14 characters so this should be fine.
2023-09-14 09:37:10 +10:00
Jean-Baptiste Bellet
edc6ac801d
Use the right colors for the question mark icon tooltip in admin style v3
2023-09-11 15:44:08 +02:00
Jean-Baptiste Bellet
75751f07b8
Move question-mark-icon into admin_style_v3 context
2023-09-11 15:31:30 +02:00
Jean-Baptiste Bellet
99ea4a63e0
No need to have a button: not conflicting with button styles
2023-09-11 15:29:09 +02:00
David Cook
99da60921f
Fix Update button sizing
...
This was broken when upgrading [Foundation](https://github.com/openfoodfoundation/openfoodnetwork/pull/11349 ). For some reason the button.expand class now sets larger font size and padding, which overrides the button.small class. It's probably a bug but we'll have to work around it.
2023-09-08 10:20:26 +10:00
Jean-Baptiste Bellet
1d5d1c5405
Include trix-styles mixin in where content from trix is displayed
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
34dab4003d
Create a mixin that include list of styles for trix editor + content
...
Will be used elsewhere (in shopfront in particular)
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
c402093081
Special case for unordered list in trix editor: should be overwritten
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
ca6d12e8ed
Actually, used in the shopfront context, links are orange
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
a8a35318f5
Add horizontal rule to trix editor
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
f9bc00e5cd
We used to use <p> to seperate block between them. now use <div>
...
trix doesn't allow the use of `<p>` as block separator since it can not contain `<figure>`: use `<div>` and _emulate_ as `<p>` with margin bottom
2023-09-04 15:46:54 +02:00
Jean-Baptiste Bellet
b6e047086a
Update trixEditor rendering <a /> element: should be green
2023-09-04 15:46:54 +02:00
David Cook
7d6ba2d31f
Clean up unneeded override
2023-08-25 17:23:05 +10:00
David Cook
451513ad04
Markup labels as.. labels
...
This means you can click on the label name to select the field, and accessibility software can read the label name. I was motivated to do this so that we could update the spec to use label text rather than IDs. But it seems we can't do that with tom-select.
I've updated the styles for all form labels (in admin_style_v3 toggle) to match the design.
2023-08-25 17:19:46 +10:00
David Cook
b0e77df226
Style form actions area
2023-08-22 11:51:05 +10:00
David Cook
fccde964bf
Enable 'medium' style for reset buttons
2023-08-22 11:46:56 +10:00
David Cook
7bf79441c8
Update link colours to match new design
2023-08-22 11:40:58 +10:00
David Cook
3cc5d7ba1d
Copy form styles to v3
2023-08-22 11:40:58 +10:00
David Cook
37d1113e4c
Align row headers with input contents
...
Inputs add extra padding, so we add the same padding to the header. Using an opt-in class, because I think we won't want this on all columns.
2023-08-22 11:40:58 +10:00
David Cook
8440c44a6f
Remove unused style
2023-08-22 11:40:58 +10:00
David Cook
2b09ec7c21
[fixup] Left line for row hover
2023-08-22 11:40:58 +10:00
David Cook
be24247df2
[wip] Left line for row hover
...
But it's not perfect. Can we use a pseudo element instead?
2023-08-22 11:40:58 +10:00
David Cook
565ea23175
Hide borders from inputs until hover
2023-08-22 11:40:58 +10:00
Jean-Baptiste Bellet
06fccd8618
Totally hide input above its container
2023-08-18 09:46:57 +02:00
Jean-Baptiste Bellet
117c373985
Add "remove-sign" icon before text in disruptive button
2023-08-18 09:46:57 +02:00
Jean-Baptiste Bellet
d27b2084ed
Do not underline text when it's a button
2023-08-18 09:46:56 +02:00
Jean-Baptiste Bellet
f5e7738c78
Introduce relaxed, regular and condensed button for specify height
2023-08-18 09:46:56 +02:00
Jean-Baptiste Bellet
5de0d79ca2
Increase distance from search container to 136px
...
116px + 20px (gap) = 136px
2023-08-18 09:46:56 +02:00
Jean-Baptiste Bellet
4219d0aa08
Change font size and weight
2023-08-18 09:46:56 +02:00
Jean-Baptiste Bellet
fa4dda9976
Finally, remove disabled rule that is unused
...
We only display active link
2023-08-17 09:26:10 +02:00
Jean-Baptiste Bellet
394e964b91
Specify for element that have href attr: the ones we want to hover
2023-08-17 09:26:10 +02:00
Jean-Baptiste Bellet
e7d36ed772
Let link have the cursor: pointer by default, and specify only for current
2023-08-17 09:26:10 +02:00
Jean-Baptiste Bellet
2405dfdaa3
Refine and adjust position of icon in button
2023-08-17 09:26:10 +02:00
Jean-Baptiste Bellet
b1ea77e611
Remove white background from dots
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
c252de87b6
Specify cursor in order to not be text
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
5fc4f7bdaf
Design hover (like current)
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
9d8325c0d9
font weight to be 600
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
d914644c35
change not selected font color to $near-black, also for arrows
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
06af58e923
increase distance between arrows and numbers to be 36px
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
6e29dd95ef
Increase distance between numbers to be 8px
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
a2da3c2f61
Better management of margin/gap between each button with flex display
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
9396e75806
Increase padding top and padding bottom
2023-08-17 09:06:26 +02:00
Jean-Baptiste Bellet
200550588a
Be as clause as possible from native <select />
...
Still need to wrap/ellipsis selected item...
2023-08-15 08:36:50 +02:00
Jean-Baptiste Bellet
6fe069608c
Re-adjust tom-select to match admin v3 style
2023-08-15 08:36:50 +02:00
Jean-Baptiste Bellet
223d350b43
Use grid instead of flex in order to be more fixed and less flexible ;)
2023-08-15 08:36:50 +02:00
Jean-Baptiste Bellet
2814368670
Adjust inside container to content without any padding
2023-08-15 08:36:50 +02:00