Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New component: Alert #78

Closed
4 tasks done
mrosvik opened this issue Jan 24, 2023 · 1 comment
Closed
4 tasks done

New component: Alert #78

mrosvik opened this issue Jan 24, 2023 · 1 comment
Labels
☂️ epic Issues ready

Comments

@mrosvik
Copy link
Member

mrosvik commented Jan 24, 2023

Related information and insight

Alert specification

The Alert Component should be used to display important messages, notifications, or warnings to users. It is designed to grab users attention and provide them with relevant information that requires immediate action or acknowledgment.

  • Should support different types of alerts and come in different status-colors: success, danger, warning, info. It should not be possible to customize the color and style.

  • Should use status icons from Navs icon library: InformationSquare , CheckmarkCircle , X-markOctagon , ExclamationmarkTriangle. It should not provide an option to change the icons or add other images.

  • Should come in one size.

  • Should be able to display a title or heading for the alert message. If there is no title, the paragraph should appear next to the icon.

  • Should (of course) follow accessibility standards, including proper semantic markup, correct use of ARIA attributes and keyboard accessibility. It should provide text alternatives for the icons.

  • Should support different languages.

  • Should not support rich text.

  • Figma design

For later:

  • We could consider to support dismissible alerts later, allowing users to close or dismiss the alert if desired, but that is not included in the first version. (The X is removed from sketches until further)
  • We could consider to have a brand-variant that provides theming for custom colors and icon. (Or use the info-variant for this)

Tasks

Preview Give feedback
  1. component 🎨 figma
    mrosvik
  2. documentation/guidelines
  3. component react
    TomasEng framitdavid
    mimarz
  4. ♿️ accessibility
@mrosvik mrosvik added component 🎨 figma Everything related to changes in Figma ☂️ epic Issues ready labels Jan 24, 2023
@mrosvik mrosvik moved this to 📋 Backlog (Planning & Design) in Team Design System Jan 24, 2023
@Febakke Febakke moved this from 📋 Backlog (Planning & Design) to 🏗 In progress in Team Design System Feb 21, 2023
@Febakke Febakke moved this from 🏗 In progress to 📋 Backlog (Development) in Team Design System Mar 17, 2023
@mrosvik mrosvik moved this from 📋 Backlog (Development) to Todo in Team Design System Apr 26, 2023
@mrosvik mrosvik moved this from 📄 Todo to 🏗 In progress in Team Design System May 11, 2023
@mrosvik mrosvik moved this from 🏗 In progress to 📋 Backlog (Development) in Team Design System May 25, 2023
@mrosvik mrosvik removed the 🎨 figma Everything related to changes in Figma label Jun 5, 2023
@mrosvik mrosvik moved this from 📋 Backlog (Development) to 📄 Todo in Team Design System Jun 5, 2023
@mrosvik mrosvik changed the title Specification for: Alert New component: Alert Jun 5, 2023
@mrosvik mrosvik moved this from 📄 Todo to Epics in Team Design System Jun 8, 2023
@mimarz mimarz removed the component label Feb 1, 2024
@mrosvik
Copy link
Member Author

mrosvik commented Feb 2, 2024

The Alert component is ready for use: https://storybook.designsystemet.no/?path=/docs/felles-alert--docs

@mrosvik mrosvik closed this as completed Feb 2, 2024
@github-project-automation github-project-automation bot moved this from ☂ Epics to ✅ Done in Team Design System Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☂️ epic Issues ready
Projects
Archived in project
Development

No branches or pull requests

3 participants