Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This particular change is coming from the feedback that we've received from the patch submission that we've made on 9/23/2020.
-
+++ b/core/themes/olivero/olivero.theme @@ -0,0 +1,583 @@ + $variables['attributes']['class'][] = 'form-type--boolean';
This is in violation of BEM because
.form-type
block element doesn't exist.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3173018-9.patch | 9.48 KB | kostyashupenko |
#7 | 3173018-7.patch | 7.06 KB | kostyashupenko |
#5 | 3173018-5.patch | 4.99 KB | Pooja Ganjage |
Comments
Comment #2
kostyashupenkoComment #3
kostyashupenkoComment #4
kostyashupenkoComment #5
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedHi,
I am creating a patch for this issue.
Please review the patch.
Let me know for any suggestions.
Thanks.
Comment #6
Pooja Ganjage CreditAttribution: Pooja Ganjage at Asentech LLC commentedComment #7
kostyashupenkoAttaching the patch, replaced `form-type--boolean` by `form-type-boolean`
Comment #8
mherchelWe have the same exact selector on line 54 and 91. We should use this as an opportunity to refactor this file a bit to consolidate these selectors.
Same here. Let's use nesting and consolidate the selectors.
In addition to the above, let's remove the
/* stylelint-disable-next-line csstools/use-logical */
comment from line 57. This refers to a stylelint plugin that was installed within contrib, but is not available to core.Comment #9
kostyashupenkoDiff and interdiff is a mess here, so attaching only patch. It should solve comment above
Comment #11
kostyashupenkoComment #12
mherchelLatest patch looks perfect. Thanks!
Comment #15
lauriiiCommitted 7835007 and pushed to 9.1.x and 9.2.x. Thanks!