Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ActionList] showDividers bug #3461

Closed
josepmartins opened this issue Jun 29, 2023 · 2 comments · Fixed by #3476
Closed

[ActionList] showDividers bug #3461

josepmartins opened this issue Jun 29, 2023 · 2 comments · Fixed by #3476
Assignees
Labels

Comments

@josepmartins
Copy link
Contributor

josepmartins commented Jun 29, 2023

Description

When using the showDividers property in an ActionList component the first line doesn't show up. I was able to reproduce it and then opened the devtools and it magically rendered the divider.

This came up in the #primer-react slack channel: https://github.slack.com/archives/C01L618AEP9/p1687740736384229

cc @maraisr

Kapture.2023-06-26.at.09.44.03.mp4

Steps to reproduce

  1. Add showDividers in an ActionList with 2 or more items
  2. Diplay the menu and see how the first line is hidden
  3. Open devtools or resize the window, the first line is displayed

Version

v35.26.0

Browser

Chrome

@josepmartins josepmartins added the bug Something isn't working label Jun 29, 2023
@josepmartins josepmartins changed the title [ActionList] showDividers bug [ActionMenu] showDividers bug Jun 29, 2023
@josepmartins josepmartins changed the title [ActionMenu] showDividers bug [ActionList] showDividers bug Jun 29, 2023
@siddharthkp siddharthkp self-assigned this Jul 3, 2023
@siddharthkp
Copy link
Member

siddharthkp commented Jul 3, 2023

From @maraisr on slack, this happens in Safari and Firefox as well, so it's not browser rendering related

@siddharthkp
Copy link
Member

siddharthkp commented Jul 3, 2023

Update: We disable the divider when we expect a visible focus ring there instead. source code →

In this example, we're expecting a focus ring for some reason when there isn't one 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants