Closed (fixed)
Project:
Claro
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 May 2019 at 18:02 UTC
Updated:
18 Oct 2019 at 16:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ant1I know this has yet to be changed in the style guide, but I created a patch which removes the old focus styling from form fields.
This way text fields will use the default focus style which looks correct in my opinion (compared to the focus style of ex. Select field).
A thing that came up when looking at the code is that checkboxes and radios also still have the old focus styling.
For addressing these fields I will create a new issue.
Comment #3
ant1Comment #4
ant1Added
:active,:focus:activeand:focus:hoverstyling (same approach as the Select field).Comment #5
lauriiiLoading text is leg under the focus effect on autocomplete fields:

Comment #6
katriencPatch with changes from #4
I've also did a change on the loading text. I added a line-height to it and a small margin-bottom so the text became above the focus effect. (solve issue on #5)
Comment #7
katriencComment #8
katriencOk, this patch should pass the test. Forgot to add a leading zero.
Comment #9
fhaeberleThis looks good! Added some size comments to clarify the rem calculation as we have done it in the other cases.
From my point of view: RTBC.
Comment #10
huzookaIssues I've found after a fast visual review:
Comment #11
katriencComment #12
katriencI've changed the behaviour. The issues described in #10 should been solved.
It looks now like this:
In the design specs I didn't found the behaviour what should happen when you hover an error input element
Normal input element:
- border black and really thin
- hover: border is a black but thicker
Input element with error:
- border red and thick
- hover: no different in thickness
Is this correct? I should espect that the input element with error should have in non-hover state the same border thickness as the normal input element.
Comment #13
fhaeberleHuh, actually I missed testing the error state, sorry!
Good catch! I think it's on purpose that the error states red border is thicker than the regular states black border because the thicker border on the error state has much more visibility and gets better recognition.
Imagining the red border would be the same thickness than the regular states black one would miss the needed recognition and would impair visibility.
Therefore, this is implemented correctly.
If you have questions in case of the Figma designs, the #admin-ui-design channel in drupal slack is extremely helpful to clarify things.
Comment #14
katriencThanks for the feedback!
I've changed the height of the row so there's enough spacing for the loading text (24px like mentioned on #3023320 Entity Reference Style Update).
It looks now like this:
Comment #15
fhaeberleComment #16
fhaeberleThanks for the quick response and your work! I'm not sure if we should fix this bug (#14) in this issue so I asked in the related field cardinality issue.
For reviewers, the patch in #12 should be fine to test.
Comment #17
lauriiiThe margin has been fixed in the design system:
Comment #18
lauriiiThis should be only applied to autocomplete table drag. I'm wondering if this could be done in the .claro-autocomplete styles instead?
Comment #19
katriencIndeed, it should be on the autocomplete styles.
I've removed it from tabledrag and added a margin top and bottom to the autocomplete style:
Comment #20
katriencComment #21
fhaeberle@lot007 Thanks! Setting to needs review because of the patch.
Comment #22
fhaeberleThis looks good! But I'm wondering, did we already take comment #17 into account?
Comment #23
ant1The spacing has been taken into account in the latest patch, but I believe the distance does not correspond with the one set in the design (it results in 28px instead of 24px).
I'll create a new patch adjusting this value.
Comment #24
ant1Spacing has been adjusted.
Comment #25
lauriiiCouldn't these be defined just as single
.form-element:focusrule?Comment #26
ant1I believe it is not possible. It would overwrite the box-shadow value of
.form-element:active&.form-element:hover.As it is in #24:

If I combine them (without adding an inset, both states have a different border-color):

Comment #27
lauriiiAny thoughts on using borders for styling the effect when possible? Here's patch as a proposal.
Comment #28
huzookaChecking this.
Comment #29
huzookaThis increases the visual border of the text editor to 3px. Even though we have a separate issue to update the styles for the editor, I think it is better not changing it here. Please remove this line!
Comment #30
huzookaComment #31
lauriiiGood catch! Fixed!
Comment #32
huzookaThis is fine!
Comment #35
lauriiiThank you all! Committed and pushed! 🚀