Problem/Motivation
CSS Styles for duration field do not work in GIN Theme
Steps to reproduce
Add a duration field and go to /node/type/edit Maybe you need to set GIN as admin theme.
You will see that the fields for "Hours" and "Minutes" are stacked. And have not applied any of the styles defined in modules (S)CSS
Problem
CSS selectors form-type-number and form-type-duration look (other theme?) look in Gin like form-type--number and form-type--duration
Proposed resolution
Duplicate the selectors. Use form-type-duration AND form-type--duration
in SCSS. This is not much of a performance issue and will solve any case. Maybe someone can dig deeper to find the cause.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screen Shot 2022-10-13 at 5.42.51 PM.png | 8.11 KB | jrockowitz |
| #4 | duration_field-3284489.patch | 2.12 KB | digitaldonkey |
Issue fork duration_field-3284489
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
digitaldonkey commentedComment #4
digitaldonkey commentedPatch from PR above
Comment #5
digitaldonkey commentedComment #6
digitaldonkey commentedComment #7
djdevinTested against Claro too.
Comment #8
jrockowitz commentedTested against Gin.
Comment #11
jaypan