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

Inline badges #12

Open
chrisarridge opened this issue Aug 21, 2024 · 0 comments
Open

Inline badges #12

chrisarridge opened this issue Aug 21, 2024 · 0 comments

Comments

@chrisarridge
Copy link
Contributor

The IATI Dashboard uses inline badges (example) similar to Bootstrap badges to highlight features.

image

I think it would be helpful to consider whether this is something we want in the design system to allow us to highlight content across the IATI estate.

Acceptance criteria

  1. Functional Criteria (Product features or functions that developers must implement to enable users to accomplish their tasks)
    1.1 There should be a badge class (or classes) that can be added to span tags.
    1.2 We should be able to control the background colour. I think there might be different ways we could implement this:
    1.2.1 In common with other components we could have separate iati-badge--red, iati-badge--teal classes (which then have foreground text colours that match WAI contrast constraints).
    1.2.2 In each application of the design system to a product/site we have custom CSS styling where we inherit from a base badge style and then set the colours to suit a particular application and are named in a way that matches the application.
    1.2.3 In common with Bootstrap we could have foreground and background colour classes to apply within the markup.

  2. Non-functional Criteria (Include availability, maintainability, performance, reliability, scalability, security, and usability criteria)
    2.1. We could easily add this functionality by importing elements from Bootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant