Skip to content

Add padding to mobile nav menu #7947

Closed

Description

@ryankeairns

Describe the bug
Looks like we might have lost some padding in the mobile nav.

From EUI docs
CleanShot 2024-08-06 at 10 08 42@2x

From Kibana > Discover
CleanShot 2024-08-06 at 10 17 50@2x

Impact and severity
The impact and severity are likely to be low as we see low, single-digit use on smaller viewports. That said, we don't know who/how this is used outside of our walls.

Environment and versions

  • EUI version:
  • React version:
  • Kibana version (if applicable): main branch (8.16)
  • Browser: arc
  • Operating System: mac

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://eui.elastic.co/#/layout/header/elastic-pattern and open the 'Fullscreen demo' or run Kibana locally and open Discover with a small viewport

Expected behavior
Padding within the panel... something like:
CleanShot 2024-08-06 at 10 20 43@2x

Minimum reproducible sandbox
It is extremely helpful for us if you are able to reproduce your issue in a minimum reproducible sandbox (visit our docs site and click the CodeSandbox logo in the top-right corner).

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Activity

  1. added
    ⚠️ needs validation
    on Aug 6, 2024
  2. cee-chen commented on Aug 7, 2024

    @cee-chen
    Contributor

    @ryankeairns it looks like the lack of padding has been the case / intentional since the inception of the component: https://eui.elastic.co/v40.0.0/#/layout/header/elastic-pattern

    If we'd like to change it, that's fine, but at that point EuiButtonEmptys may look a tad odd and like they have too much spacing.

  3. added
    design decision
    and removed
    ⚠️ needs validation
    on Aug 7, 2024
  4. cee-chen commented on Aug 12, 2024

    @cee-chen
    Contributor

    @ryankeairns just to confirm, do you want to go ahead and add the padding (with a note that EuiButtonEmptys may then look very spaced out?)

  5. ryankeairns commented on Aug 12, 2024

    @ryankeairns
    ContributorAuthor

    Hey, apologies, I was out. I would vote for adding the padding as it will result in a nicer default than how it looks today... even if still imperfect. ty

  6. self-assigned this
    on Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design decision

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions