Skip to content

Slotted icon is not positioned correctly in a GSB when app-state or username are used #1419

@micahjones13

Description

@micahjones13

Describe the bug
When rendering an icon in the global status bar via the slot='left-side, the icon is centered until app-state, username, or any other GSB prop that creates text below the app name is added. The app name text shifts up to accommodate the new text below it, but the icon remains where it is leading to it not being positioned properly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to this codepen
  2. You can see that the set up is a rux-icon in the left-side slot which is the trigger for a pop-up menu.
  3. Notice that the icon is not aligned correctly with the text App
  4. Remove the props app-state and username from the GSB and notice the App text shift back down.

Any content (especially a rux-icon since that is a very common use case) should always be aligned with the top of the app-name text.

Metadata

Metadata

Assignees

No one assigned

    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