Skip to content

bug: scroll to the right button renders for short lists on playground #2999

Closed
@thetaPC

Description

@thetaPC

Describe the Bug

The playground files will render a scroll to the right button when the the files view overflows (which makes sense):
Screenshot 2023-06-15 at 1 12 50 PM

However, when I select a different framework that doesn't overflow, then the scroll to the right button still shows. This only happens when at least one framework has tabs that overflow.
Screenshot 2023-06-15 at 1 19 02 PM

Expected Behavior

I expect to not see the scroll to the right button when the current tabs don't overflow.

Screenshot 2023-06-15 at 1 18 38 PM

Steps to Reproduce

  1. Navigate to the Action Sheet -> "Collecting Role Information on Dismiss" section
  2. Verify that Angular is selected
  3. Verify the scroll to the right button renders
  4. Click on React
  5. Notice the scroll to the right button is still present
  6. Navigate to the Action Sheet -> "Styling"
  7. Notice that the Angular doesn't render the scroll to the right button
  8. Click on React
  9. Notice the scroll to the right button is not rendered

Screenshots

With bug:
Angular
Screenshot 2023-06-15 at 1 12 50 PM

React
Screenshot 2023-06-15 at 1 19 02 PM

Without bug:
Angular
Screenshot 2023-06-15 at 1 24 02 PM

React
Screenshot 2023-06-15 at 1 18 38 PM

Operating System

macOS

Browser

Firefox

Version

114.0.1

Additional Information

The code source can be found in the PlaygrounTabs index file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs on the documentation website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions