Problem/Motivation

dialog.pcss.css

#drupal-off-canvas {
  & .form-type--boolean {
    margin-left: 0;
  }
  & .form-item .form-item__description {
    color: var(--color-whitesmoke);
    font-size: 0.75rem;
  }
}

Steps to reproduce

We need a page that is using this CSS variable to confirm if this is not showing up.

Proposed resolution

Define the variable in the theme

Remaining tasks

  • What color is --color-whitesmoke supposed to be
  • Find variables file in theme
  • Create color, or choose another one if it doesn’t exist

User interface changes

  • Color of #drupal-off-canvas .form-item--description will change

API changes

No API changes.

Data model changes

No Data model changes.

Release notes snippet

N/A

Issue fork drupal-3277274

Command icon 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

bnjmnm created an issue. See original summary.

larowlan’s picture

Issue tags: +Novice, +Bug Smash Initiative
larowlan’s picture

Issue tags: +Portland2022

richardrobinson made their first commit to this issue’s fork.

richardrobinson’s picture

I'm a novice. I am at DrupalCon. I'm working with a mentor. I will work on this for the next hour.

Slack thread: https://drupal.slack.com/archives/C1BMUQ9U6/p1651098488766439

w01f’s picture

I'm a novice - I'll work on this issue for the next hour with the mentor contribution group at Portland Drupalcon.

mcolebank’s picture

I am a novice at Drupalcon working on this issue in a mentor contribution group for the next hour.

joshmiller’s picture

I'm a mentor. We are at Portland Drupalcon 2022. I will be working on this issue for the next hour.

apocalypticjake’s picture

Yo! Novice here at Portland DrupalCon 2022. I'll be working on this issue the next hour as part of a mentored contribution group.

richardrobinson’s picture

If the color-whitesmoke variable doesn't exist, should we create it or can we just use an existing one? White might work.

apocalypticjake’s picture

Issue summary: View changes
richardrobinson’s picture

Found out that ckeditor uses standard "whitesmoke" CSS color. Currently looking through the admin theme on DrupalPod to reproduce the issue/find where it's being used. Views uses modals/dialogs.

markie’s picture

apocalypticjake’s picture

Issue tags: +GiftofOpenSource

Added Tag: GiftofOpenSource tag to issue

richardrobinson’s picture

Committed to branch

richardrobinson’s picture

https://www.drupal.org/project/drupal/issues/3154539

It turns out that they never intended on using the default "whitesmoke" CSS color. They did have a variable named --color-white and it was changed to --color-gray-50. I'm going to make another commit using that.

joshmiller’s picture

Hi I'm working on this issue in Mentored Contribution at Drupalcon Portland for the next hour.

pilot3’s picture

Hi, I'm working on this issue in Mentored Contribution at DrupalCon Portland for the next hour.

saki007ster’s picture

Hi, I'm working on this issue in Mentored Contribution at DrupalCon Portland for the next hour.

apocalypticjake’s picture

I'm assisting with this issue for the next 15-30mins in Mentored Contribution at DrupalCon Portland.

sjothivelu’s picture

Hi, I am assisting on this issue in Mentored Contribution at DrupalCon Portland.

sjothivelu’s picture

Hi, I am volunteering in DrupalCon Portland 2022

mcolebank’s picture

Status: Active » Reviewed & tested by the community

Verified that richardrobinson fix is correct. Tested and verified that the variable is correct, tested that description text shows in Layout Builder custom block. Portland Drupalcon mentored contribution group thinks this is ready.

mradcliffe’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs manual testing

Thank you all for working on the issue.

It would be helpful to add Before/After screenshots. I added the Needs manual testing tag for this. Once those images are uploaded and embedded into the issue, please remove the tag and set back to RTBC.

bnjmnm’s picture

Whitesmoke was one of the variables converted to grayscale naming in this issue #3154539: Implement new Gray scale on Claro this was a whitesmoke use that should have been changed there but was apparently missed. Use that as a reference to confirm it's being changed to the right equivalent variable.

larowlan’s picture

Use that as a reference to confirm it's being changed to the right equivalent variable.

Yep, looks good - thanks for the link

saki007ster’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new138.04 KB
new216.85 KB
larowlan’s picture

Issue tags: -Needs manual testing

Crediting everyone who worked on this at the mentored sprint - thanks all

saki007ster’s picture

Grepped all the other color variables to make sure there is no color variables that is missed and causing errors

Only local images are allowed.

sjothivelu’s picture

Hi, Thank you for finally approving my account. I have been contributing today in mentored DrupalCon Portland 2022. Hopefully, we get commit this issue!

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

Actually @markie was right here

For Drupal 9.4 (where we support IE11) we remove the variables - but for Drupal 10, we keep them (because we don't support IE11)

So we need a branch for 10.0.x here too.

It will basically be the same code as the 9.4.x code, but we'll need to run the yarn script to rebuild the .css file

The pcss file will be the same.

larowlan’s picture

Version: 9.4.x-dev » 10.0.x-dev
richardrobinson’s picture

(╯°□°)╯︵ ┻━┻

Working on this for the next hour or so. Going to regenerate the file on the 10.0.x branch.

Created new branch (3277274-10.0.x) off 10.0.x.

richardrobinson’s picture

Changes pushed to branch for 10.0.x

richardrobinson’s picture

Status: Needs work » Reviewed & tested by the community

  • larowlan committed 817b9ec on 10.0.x
    Issue #3277274 by richardrobinson, saki007ster, ApocalypticJake, bnjmnm...

  • larowlan committed 73b7efe on 9.5.x
    Issue #3277274 by richardrobinson, saki007ster, ApocalypticJake, bnjmnm...

  • larowlan committed 5768dc0 on 9.3.x
    Issue #3277274 by richardrobinson, saki007ster, ApocalypticJake, bnjmnm...
  • larowlan committed 4ca4f6d on 9.4.x
    Issue #3277274 by richardrobinson, saki007ster, ApocalypticJake, bnjmnm...
larowlan’s picture

Version: 10.0.x-dev » 9.3.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks @richardrobinson, ordinarily we require someone other than the person who wrote the patch/MR to RTBC an issue, but since this was just a minor re-roll for a D10 version, I think it's ok.

Committed to 10.0.x and 9.5.x. Backported the 9.5.x patch to 9.4.x and 9.3.x

Thanks everyone, congratulations to those for whom this is their first core commit, hope to see you in the issue queue.

🎉

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.