Skip to content

Conversation

@louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Feb 11, 2026

Types of change

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

Related issues

Closes #2785.

Context & Motivation

Read #2785.

Description

  • Removed some useless variables on alerts.
  • Updated --bs-close-icon and all references.
  • Updated all docs callouts
  • Updated all docs calls to callout accordingly

Questions

Several questions remain:

  • Force .fs-bm on bullet list is weird since label-medium is applied on it ?
  • vertical-align is weird on zoom, maybe to change on reboot side ?
  • No close button for now, it will be in a separate PR ?
  • Do we need more tokens for the bullet list ?
  • Rounded buttons inside alerts are a bit experimental, do we need to touch some words about it ?
  • Tweak about the docs Scss that may need a more global class name
  • How to handle dual mode correctly ?

Progression (for Core Team only)

Live previews

.

.

.

Handle zoom

fix CI
@netlify
Copy link

netlify bot commented Feb 11, 2026

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit a4eff85
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/698e09454a25260008041448
😎 Deploy Preview https://deploy-preview-3348--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request implements the Alert component for OUDS Web, introducing two types of alerts (Alert message and Inline alert) with functional and non-functional variants. The PR replaces the old callout styling system with a new alert-based implementation that aligns with the Orange Unified Design System specifications.

Changes:

  • Implemented Alert component with .alert-message and inline alert variants, supporting 6 status types (negative, positive, info, warning, neutral, accent)
  • Renamed alert types from "danger"/"success" to "negative"/"positive" throughout the codebase
  • Added "expurge" icon to SVG sprites for all brands as the close button icon
  • Updated all documentation callouts to use the new Callout component based on alert structure
  • Removed old callout SCSS file and deprecated CalloutDeprecatedDarkVariants component

Reviewed changes

Copilot reviewed 56 out of 74 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
scss/_alert.scss Complete rewrite implementing new alert structure with container classes, icon handling, and status variants
site/src/components/shortcodes/Callout.astro Refactored to use alert-message structure with title support and action links
site/src/content/docs/components/alerts.mdx New comprehensive documentation for both alert types with examples and accessibility guidelines
site/src/assets/partials/snippets.js Updated alert JavaScript examples to use new structure
site/static/*/docs/[version]/assets/img/ouds-web-sprite.svg Added "expurge" icon for close buttons across all brands
packages/*/scss/tokens/_composite.scss Updated $cross-icon-stroke to match expurge icon
site/src/scss/_callouts.scss Removed old callout styles (file deleted)
Multiple .mdx files Updated callout usages from old syntax to new Callout component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<div class={`bd-callout bd-callout-${type}`}>
{Content ? <Content /> : <slot />}
<div class={`alert alert-message alert-${type} ${className ? className : 'my-medium'}`}>
<div class="alert-icon">{!!title && <p class="visually-hidden">{titleToDisplay}</p>}</div>
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

The logic for showing the visually hidden text on line 83 appears incorrect. The condition !!title will only show the visually hidden text when a custom title is provided, but it should also show it when using the default title (titleToDisplay). This means alerts with default titles (Info, Warning, Danger) won't have the visually hidden text for screen readers unless a custom title is explicitly passed. Consider changing the condition to always include the visually hidden text, or use !!titleToDisplay instead.

Suggested change
<div class="alert-icon">{!!title && <p class="visually-hidden">{titleToDisplay}</p>}</div>
<div class="alert-icon"><p class="visually-hidden">{titleToDisplay}</p></div>

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

The title already displays the hidden text, which is not the case when there is a custom title

' </div>',
' <div class="alert-action-container">',
' <button class="btn btn-icon btn-minimal" data-bs-dismiss="alert">',
' <svg aria-hidden="true"><use xlink:href="/orange/docs/1.0/assets/img/ouds-web-sprite.svg#expurge"/></svg>',
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

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

There is a hardcoded path to the SVG sprite that will not work for all brands. The path "/orange/docs/1.0/assets/img/ouds-web-sprite.svg#expurge" is specific to the Orange brand, but this code should work for all brands (sosh, orange-compact, etc.). Consider using a dynamic path or a configuration-based approach to reference the correct sprite location.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

Probably will be with the Close button that we are implementing.

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

Projects

Status: Need Dev Review

Development

Successfully merging this pull request may close these issues.

1 participant