Skip to content

[BetaBadge] Add alignment prop #6358

Closed

Description

@chandlerprall

See the Beta badge type example,

TODO

  • Add new prop for alternative alignments (e.g. baseline, middle, super)
  • [Proposed] set default to baseline

Screen Shot 2022-11-14 at 11 35 38 AM

Reported by Discover(elastic/kibana#144655) and the synthetics recorder team.

Activity

  1. chandlerprall commented on Nov 14, 2022

    @chandlerprall
    ContributorAuthor

    Nvm, the super alignment is the intended location; that positioning was shifted to the current location through recent css value tweaks, but it's working as expected.

  2. changed the title [-][BetaBadge] badge no longer lines up with its line of text[/-] [+][BetaBadge] Add alignment prop[/+] on Nov 14, 2022
  3. ryankeairns commented on Nov 14, 2022

    @ryankeairns
    Contributor

    There are use cases where the super alignment is not always desirable. In a Slack thread, we gained consensus for adding a prop with alternate vertical alignment options (e.g. super, baseline, middle).

  4. added
    ⚠️ needs validation
    on Nov 14, 2022
  5. removed
    ⚠️ needs validation
    on Nov 15, 2022
  6. self-assigned this
    on Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions