Skip to content

Commit

Permalink
feat(sidebar): add Colors category to Guides (#9936)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Nov 3, 2023
1 parent 321caf4 commit 20e5826
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kumascript/macros/CSSRef.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ const text = mdn.localStringMap({
'Box_model': 'Box model',
'Introduction_to_the_CSS_basic_box_model': 'Introduction to the CSS basic box model',
'Mastering_margin_collapsing': 'Mastering margin collapsing',
'Colors': 'Colors',
'Applying_color_to_HTML_elements_using_CSS': 'Applying color to HTML elements using CSS',
'Web_Accessibility_Understanding_Colors_and_Luminance': 'Web Accessibility: Understanding colors and luminance',
'Color_contrast': 'Web Accessibility: Color contrast',
'Columns': 'Columns',
'Basic_concepts_of_Multicol': 'Basic concepts of Multicol',
'Styling_columns': 'Styling columns',
Expand Down Expand Up @@ -917,6 +921,7 @@ const text = mdn.localStringMap({
const locale = env.locale;
const learnURL = `/${locale}/docs/Learn/`;
const cssURL = `/${locale}/docs/Web/CSS/`;
const accessibilityURL = `/${locale}/docs/Web/Accessibility/`;
const htmlEscape = mdn.htmlEscape;
const hasTag = page.hasTag;
Expand Down Expand Up @@ -1220,6 +1225,16 @@ async function buildPropertylist(pages, title) {
</ol>
</details>
</li>
<li class="toggle">
<details>
<summary><%=text['Colors']%></summary>
<ol>
<li><%-smartLink(`${cssURL}CSS_colors/Applying_color`, null, text['Applying_color_to_HTML_elements_using_CSS'], cssURL)%></li>
<li><%-smartLink(`${accessibilityURL}Understanding_Colors_and_Luminance`, null, text['Web_Accessibility_Understanding_Colors_and_Luminance'], accessibilityURL)%></li>
<li><%-smartLink(`${accessibilityURL}Understanding_WCAG/Perceivable/Color_contrast`, null, text['Color_contrast'], accessibilityURL)%></li>
</ol>
</details>
</li>
<li class="toggle">
<details>
<summary><%=text['Columns']%></summary>
Expand Down

0 comments on commit 20e5826

Please sign in to comment.