tailwindui-issues icon indicating copy to clipboard operation
tailwindui-issues copied to clipboard

Focus ring not fully visible

Open aliniacb opened this issue 3 years ago • 0 comments

What component (if applicable)

  • URL for category: https://tailwindui.com/components/application-ui/page-examples/home-screens
  • Component name: Sidebar component

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://tailwindui.com/components/application-ui/page-examples/home-screens first example
  2. Click on the sidebar component (user context menu)
  3. Once clicked the focus ring appears and the upper part is cut

Expected behavior The focus ring should be fully visible

Screenshots

Screenshot 2022-10-11 at 22 16 47

Browser/Device (if applicable)

  • ALL

Additional context

Spacing the component with padding rather than margin fixes the issue

Current:

 <!-- Sidebar component, swap this element with another sidebar if you like -->
    <div class="mt-6 flex h-0 flex-1 flex-col overflow-y-auto">
     ...
    </div>

To fix:

 <!-- Sidebar component, swap this element with another sidebar if you like -->
    <div class="pt-6 flex h-0 flex-1 flex-col overflow-y-auto">
     ...
    </div>

aliniacb avatar Oct 11 '22 19:10 aliniacb