Skip to content

[Bug]: Badges notes #548

Description

@gselderslaghs

Before submitting...

Context

  • Badges should not include textual content in psuedo selector (multilingual transliteration)
    Currently it's possible to add classes to badges like "new", this results in textual content being rendered over CSS
    This makes this feature incompatible with multilingual transliteration

  • Badges do not always adjust in size when textual content increases
    This results textual overflow out of the badge
    Screenshot 2024-12-11 at 14 57 56

Current Behavior

  • Textual content rendered by CSS
  • Textual overflow

Expected behavior

  • All textual content should be rendered in the HTML DOM, as a result it should be renderable in all possible languages
  • Text overflow should not be allowed

Possible Solutions or Causes

Textual content in psuedo
Remove textual content in CSS and update documentation

Textual overflow
Removing the width specifiers and adding a white-space: nowrap; seem to fix this issue
Since badges are used over multiple components, it should be tested in all possible scenario's

Your Environment

  • Version used: 2.1.1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions