Skip to content

Bug - Tabs aren't flush with edge of container #8511

Description

@mcoker

When scroll buttons are in the DOM and hidden, there is a small gap on either side of the tabs list that keeps the tabs from being flush with the edge of their container.

image

Looks like the problem is because this var is supposed to be the width of the scroll button and it isn't. It's used as a negative margin that's animated to expand the tabs list out when the scroll buttons are hidden.

--#{$tabs}__scroll-button--Width: var(--pf-t--global--spacer--2xl);

We can probably do that a better way. A couple of ideas:

  • Simplest fix is probably just updating that var with a calc() of all of the things in the button, to get an accurate width.

  • Ideally, I think we would optimize the animation performance and only animate the scroll button's position using translate, and let the tabs list resize immediately. We would need to run that by design though because the animation would change a little.


Jira Issue: PF-4461

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

    PF TeamIssue originates from PF TeamStale

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions