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

[Feature Request]: Top navigation similar to aws console #2048

Open
2 tasks done
hopkinsnji opened this issue Mar 7, 2024 · 2 comments
Open
2 tasks done

[Feature Request]: Top navigation similar to aws console #2048

hopkinsnji opened this issue Mar 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hopkinsnji
Copy link

Description

For this component: https://cloudscape.design/components/top-navigation
It would be nice if it resembles the aws console top nav as it is more compact and creates more space for content.

Code of Conduct

@hopkinsnji hopkinsnji added the enhancement New feature or request label Mar 7, 2024
@Al-Dani
Copy link
Member

Al-Dani commented Mar 13, 2024

Hello,
Thank you for your suggestion!

Could you share more context with us? What is your use-case and what are the limitations that TopNavigation has for you?

Best,
Aleksandra

@mdai-vss
Copy link

Description

For this component: https://cloudscape.design/components/top-navigation It would be nice if it resembles the aws console top nav as it is more compact and creates more space for content.
...

Hello @hopkinsnji , when comparing AWS console with Cloudscape UI on regular FHD display, Navbar height is typically 40px vs 56px (as in 40 + 16, unless it's narrow viewport). One can argue which size would be ideal for a Navbar, but if you want to get close to what AWS console looks, suppose you already have an outer div with id "top-nav", you can try the following.

#top-nav [class^='awsui_top-navigation'] > [class^='awsui_padding-box'] {
  block-size: 40px;
}

#top-nav [class^='awsui_identity'] {
  [class^='awsui_logo'] {
    max-height: 24px;
  }
  [class^='awsui_title'] {
    font-size: medium;
  }
}

Now, I know it's definitely not the recommended way but just might solve your problem in a dev env.

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

No branches or pull requests

3 participants