Skip to content

Lint: use named color if possible (2)#40621

Merged
dipikabh merged 1 commit intomdn:mainfrom
Josh-Cena:named-color-2
Aug 8, 2025
Merged

Lint: use named color if possible (2)#40621
dipikabh merged 1 commit intomdn:mainfrom
Josh-Cena:named-color-2

Conversation

@Josh-Cena
Copy link
Copy Markdown
Member

After #40228, we are a lot more explicit on some CSS stylistic decisions. In particular, we now have systematic rules surrounding the preferred color notations. As a starter, I'm porting all colors that have named equivalents to named colors, per our recommendation of using "common named colors". Afterwards, I'm going to convert the remaining colors to the preferred notation, such as preferring rgb() and preferring number parameters.

@Josh-Cena Josh-Cena requested review from a team as code owners August 4, 2025 16:40
@Josh-Cena Josh-Cena requested review from chrisdavidmills, fred-wang, scottaohara and sideshowbarker and removed request for a team August 4, 2025 16:40
@github-actions github-actions bot added Content:WebAPI Web API docs Content:JS JavaScript docs Content:Accessibility Accessibility docs Content:Media Media docs Content:MathML MathML docs Content:PWA Progressive Web Apps content size/m [PR only] 51-500 LoC changed labels Aug 4, 2025
@Josh-Cena Josh-Cena requested review from bsmth, dipikabh and estelle and removed request for a team, chrisdavidmills, fred-wang, scottaohara and sideshowbarker August 4, 2025 16:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 4, 2025

Preview URLs (55 pages)
Flaws (3)

Note! 52 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/Document_Object_Model/Examples
Title: Examples of web and XML development using the DOM
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/API/Document_Object_Model/Whitespace_in_the_DOM which is a redirect

URL: /en-US/docs/Web/API/Document_Object_Model/Traversing_an_HTML_table_with_JavaScript_and_DOM_Interfaces
Title: Traversing an HTML table with JavaScript and DOM Interfaces
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/API/Document_Object_Model/Whitespace_in_the_DOM which is a redirect

URL: /en-US/docs/Web/Progressive_web_apps/Tutorials/CycleTracker/HTML_and_CSS
Title: CycleTracker: Base HTML and CSS
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/Progressive_web_apps/Tutorials/CycleTracker/ which is a redirect

(comment last updated: 2025-08-07 08:32:13)

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Aug 5, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 5, 2025

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Aug 5, 2025
Copy link
Copy Markdown
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks a lot!

@dipikabh dipikabh merged commit 5f2a755 into mdn:main Aug 8, 2025
8 checks passed
@Josh-Cena Josh-Cena deleted the named-color-2 branch August 9, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Accessibility Accessibility docs Content:JS JavaScript docs Content:MathML MathML docs Content:Media Media docs Content:PWA Progressive Web Apps content Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants