Closed (fixed)
Project:
Olivero
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 Mar 2020 at 22:06 UTC
Updated:
14 Apr 2020 at 12:39 UTC
Jump to comment: Most recent, Most recent file
- We have the different types of input elements, like: text fields, checkboxes, radio buttons, submit buttons, and etc designed, however, we need to account for these styles in the Olivero theme.
- Add styling to all of the form elements defined in the Figma design. See the link here.
- Make sure to provide visible focus for keyboard users.
- Make sure the all of the form elements are fully responsive.

| Comment | File | Size | Author |
|---|---|---|---|
| #22 | 3117242-22-forms.patch | 101.99 KB | mherchel |
| #22 | 3117242-22-forms-interdiff.patch | 2.54 KB | mherchel |
| #20 | interdiff_18-20.txt | 14.14 KB | kostyashupenko |
| #20 | 3117242-20.patch | 101.98 KB | kostyashupenko |
| #18 | 3117242-18-forms.patch | 94.92 KB | mherchel |
Comments
Comment #2
proeungComment #3
proeungComment #4
proeungComment #5
jerseycheeseHi there!
I'm taking this on. Aiming to have something reviewable by end of next sprint (starting 3/16?).
Planning on using Style Guide module to have all the relevant from-related elements rendered on a single page, and will theme them from there.
Comment #6
proeung@jerseycheese Thank you for picking up this issue. Please let me know if you have any questions.
Comment #7
kostyashupenkoComment #8
kostyashupenkoI will share big patch tomorrow (24th march) since such a huge issue :)
Comment #9
jerseycheese@kostyashupenko - I had gotten a small start on this before you claimed it. I'm going to move on to a different issue since it sounds like you've got a big patch incoming and I don't want to duplicate work.
Comment #10
kostyashupenko@jerseycheese thanks for that and i'm sorry. There was no activity from 16th Match, so i decided to take care about that issue.
Comment #11
kostyashupenkoIf you don't have pre-defined templates with all form-elements presented, i would recommend to use "styleguide" module, or "webform" and "webform UI" module to easily create all possible elements with all needed cases.
Mockup is not full, so don't forget to test the following cases:
- Disabled text input
- Hover/focus styles on text input when errors
- Selectbox when errors (also hover/focus styles, also disabled selectbox)
- Checkboxes / radios when errors
- Disabled button
- Also input type="date", type="file" and other.
On my side all looks good even in IE.
Things were done based on Claro techniques, also i tried to evade overriding templates, when it was possible to use hooks instead.
Comment #12
bash247 commented@kostyashupenko I gave your patch a quick test with the webform module and things look good on my side. I tested the cases you mentioned above and they look just like the Figma designs.
I tested the patch on Firefox 74 Ubuntu.
Comment #13
mherchelRe-rolled.
Comment #14
mherchelLast patch didn't get all of the changes. Corrected re-rolled patch attached.
Comment #15
mherchelFirst of all, thank you for all of this work! This is looking amazing.
Requested changes:
* The
labelelements need to be set todisplay: blockby default (this may be because we removed the dependency of the Classy base theme).* Form items need some vertical spacing on
.form-item. I recommendvar(--sp0-5), which is 9px.Comment #16
mherchel* No visible focus states in Windows High Contrast mode. This is because this mode makes transparent borders visible (so everything has a border).
Comment #17
mherchelComment #18
mherchelOne more re-roll (after the grid refactor was committed)
Comment #19
kostyashupenkoComment #20
kostyashupenkoSo, about #15 - I have provided already
form.cssstyles, which are based on claro's styles, but with overrides specifically for Olivero and its css variables. It was done in #11.There was an issue after your @mherchel rerolls/rebases, since classy is not a base theme anymore - then
form.csscouldn't be attached. But now it is :) I just addedform.cssintoglobal-stylingcomponents.So everything i fixed here - is windows high-contrast mode. Now all should be fine
Comment #21
mherchelThis looks good! I'm going to fix and commit this (and made the following changes on commit)
We're utilizing vertical rhythm within the theme (where everything is a multiple of a value). This should be set to 18px.
You have --form-element-border-size-base set within variables.css. Should this be used here?
At some point, I'd love to abstract the button colors. But that can be a followup issue
This should be moved under libraries-override.
This still has the claro namespace.
Update documentation.
Comment #22
mherchelAttaching updated patch and interdiff
Comment #23
mherchelCommitted! I'm going to open up some followup issues.