Skip to content

feat(lib): Add Typography as components and h2 heading marker - #3776

Open
hannahiss wants to merge 67 commits into
mainfrom
main-his-typo-headings
Open

hannahiss wants to merge 67 commits into
mainfrom
main-his-typo-headings

Conversation

@hannahiss

@hannahiss hannahiss commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Types of change

  • Non-breaking change
  • Breaking change (fix or feature that would change existing functionality and usage)

Related issues

Closes #3655

Context & Motivation

Description

  • Add the components group Typography with the types Heading, Display, Body, Label, Code.
    • <pre>/<code> : use content/default color for the component
    • <code>: use the content/muted color four our inline code elements in the doc
    • Add the marker to h2 for Orange. Still wondering if we should add it to .fs-hl
  • Refactor the foundation doc and styles to have only reboot and no more typography page, and symplify reboot texts
    • .blockquote deleted, use <blockquote> insteas, associated with .blockquote-footerfor authoring
  • Rename _type.scss to _typography.scss

Some TODOs are still in the code and still to check with reviewer.

Checklists

  • I have read the contributing guidelines
  • My change follows the developer guide
  • My change pass all tests
  • My change is compatible with a responsive display
  • I have added tests (Javascript unit test or visual) to cover my changes
  • My change introduces changes to the documentation that I have updated accordingly
    • Title and DOM structure is correct
    • Links have been updated (title changes impact links)
    • CSS for the documentation
  • I have checked all states and combinations of the component with my change
  • I have checked all the impacts for the other components and core behavior (grid, reboot, utilities)

Checklist (for Core Team only)

  • The changes need to be in the migration guide
  • The changes are well displayed in Storybook (be careful if example order has changed for DSM)
  • The changes are compatible with RTL
  • Manually test browser compatibility with BrowserStack (Chrome 120, Firefox 121, Edge 120, Safari 15.6, iOS Safari, Chrome & Firefox on Android)

Progression (for Core Team only)

Live previews

@netlify

netlify Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 830adfc
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6adb5de4e587d3fd70b98bdb
😎 Deploy Preview https://deploy-preview-3776--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The implementation omits .fs-hl, regresses Sosh homepage styling, and directly edits generated token files.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a brand-specific marker for heading-large typography.

Changes:

  • Implements the marker using tokenized SVG masking.
  • Documents and applies it to homepage headings.
  • Updates CSS snapshots and package metadata.
File summaries
File Description
site/src/content/docs/foundation/typography.mdx Documents marker usage.
site/src/components/home/GetStarted.astro Applies marker and adjusts subheadings.
site/src/components/home/Customize.astro Applies marker and adjusts subheadings.
site/src/components/home/CSSVariables.astro Applies marker and adjusts subheadings.
scss/_type.scss Defines marker pseudo-element styling.
scss/tests/snapshot-tests/__snapshots__/ouds-web.css Updates compiled CSS snapshot.
scss/tests/snapshot-tests/__snapshots__/ouds-web-bootstrap.css Updates Bootstrap CSS snapshot.
packages/orange/scss/tokens/_composite.scss Defines Orange marker asset dimensions.
packages/orange/scss/tokens/_component.scss Adds Orange marker color token.
packages/orange-compact/scss/tokens/_composite.scss Defines compact marker asset dimensions.
packages/orange-compact/scss/tokens/_component.scss Adds compact marker color token.
packages/sosh/scss/tokens/_composite.scss Disables the marker asset for Sosh.
packages/sosh/scss/tokens/_component.scss Adds the null Sosh marker color.
package.json Reorders DocSearch dependencies.
package-lock.json Rewrites dependency metadata.
Review details

Files not reviewed (2)

  • scss/tests/snapshot-tests/snapshots/ouds-web-bootstrap.css: Generated file
  • scss/tests/snapshot-tests/snapshots/ouds-web.css: Generated file
  • Files reviewed: 12/15 changed files
  • Comments generated: 9
  • Review effort level: Balanced

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/orange-compact/scss/tokens/_component.scss
Comment thread packages/orange/scss/tokens/_component.scss
Comment thread packages/sosh/scss/tokens/_component.scss Outdated
Comment thread scss/_type.scss Outdated
Comment thread scss/_type.scss Outdated
Comment thread site/src/components/home/CSSVariables.astro Outdated
Comment thread site/src/components/home/Customize.astro Outdated
Comment thread site/src/components/home/GetStarted.astro Outdated
Comment thread site/src/content/docs/foundation/typography.mdx Outdated
@hannahiss
hannahiss changed the base branch from main to tokenator-update-tokens-20260914134918 September 15, 2026 08:20
hannahiss and others added 4 commits September 15, 2026 10:23
…134918' into main-his-typo-headings

# Conflicts:
#	packages/orange-compact/scss/tokens/_component.scss
#	packages/orange/scss/tokens/_component.scss
#	packages/sosh/scss/tokens/_component.scss
#	site/data/_components-versions.yml
* feat(lib): Bump Items to v1.2.0

* fix review

Co-authored-by: Vincent Prothais <vincent.prothais@orange.com>

* fix review

Co-authored-by: Vincent Prothais <vincent.prothais@orange.com>

---------

Co-authored-by: Vincent Prothais <vincent.prothais@orange.com>
@hannahiss hannahiss changed the title Add Typography as components and h2 heading marker feat(lib): Add Typography as components and h2 heading marker Oct 9, 2026
# Typography

Global typography settings, headings, body text, display headings, and text utilities.
Typography is a set of UI elements that structure and style text content: headings, display text, body text,

@hannahiss hannahiss Oct 9, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@louismaximepiton I'm wondering about the strange indentation? Should I fix it?

@louismaximepiton louismaximepiton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think that we should somehow propose a way to copy our configuration for the Prism syntax coloration ?

Haven't reviewed the skills yet since there is many to change before to review it

Comment thread site/data/_components-versions.yml Outdated
Comment thread site/data/components-details.ts
Comment thread site/data/components-details.ts Outdated
Comment thread site/src/content/docs/components/typography.mdx Outdated
Comment thread scss/_reboot.scss
code {
font-size: $code-font-size;
font-style: normal; // OUDS mod: <var> is italic in all browsers
color: var(--#{$prefix}color-content-muted);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Still not a big fan of removing it, since all documentation generators will generate default color code which is barely visible imo and will encourage people to use every color they can use, for example $ouds-color-content-status-warning which is imo an error. I'll keep this open to have other thoughts.

For instance if we keep it like that, we should also remove :

  • $code-color and its associated CSS variable
  • Add something in the update guide

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

To confirm with @vprothais wether we keep the grey color or not?

<ThemeSpecific theme={['orange', 'orange-compact']}>
### Heading with marker

A brand-colored marker can be displayed below the heading large (`<h2>` or `.h2`), to enhance its visual emphasis and reinforce information hierarchy, by adding the `.marker class`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure we want to keep only marker, which is not specific enough to me, maybe something like title-marker or something around this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It could be "heading-marker" but if after they want to use it on something else than a heading... Or "typography-marker" ut a bit long. @vprothais what do you think?

Comment thread site/src/content/docs/components/typography.mdx Outdated
Comment thread site/src/content/docs/components/typography.mdx Outdated
Comment thread site/src/content/docs/components/typography.mdx Outdated
Comment thread site/src/content/docs/components/typography.mdx Outdated

@louismaximepiton louismaximepiton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, let's send it to design and a11y review and Vincent may give its thoughts in the meantime

Comment thread scss/_typography.scss Outdated
Comment thread site/src/content/docs/foundation/typography.mdx
Comment thread site/src/content/docs/foundation/reboot.mdx
@louismaximepiton louismaximepiton removed their assignment Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: In Progress / Draft

Development

Successfully merging this pull request may close these issues.

Handle signature on heading large (h2)

7 participants