-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] IA flagged changes to navigation (#20971)
## Summary & Motivation Apply changes to the top nav for our info architecture exploration, along with some stylistic changes to the top right side of the nav to make it more consistent. Non-flagged: <img width="1136" alt="Screenshot 2024-04-02 at 13 12 32" src="https://github.com/dagster-io/dagster/assets/2823852/e9f72c37-d212-4f3a-8a94-260f5adaf3c2"> With settings flag: <img width="1136" alt="Screenshot 2024-04-02 at 13 12 18" src="https://github.com/dagster-io/dagster/assets/2823852/59ab39bf-2b5d-4f14-ad6e-5e5f3aacf6d2"> ## How I Tested These Changes Load app, verify top nav rendering and behavior. Enable new Settings flag, verify same.
- Loading branch information
Showing
12 changed files
with
157 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
js_modules/dagster-ui/packages/ui-components/src/icon-svgs/help_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
js_modules/dagster-ui/packages/ui-core/src/app/TopNavButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import {Colors, IconWrapper, UnstyledButton} from '@dagster-io/ui-components'; | ||
import styled from 'styled-components'; | ||
|
||
export const TopNavButton = styled(UnstyledButton)` | ||
background-color: ${Colors.navButton()}; | ||
height: 32px; | ||
width: 32px; | ||
border-radius: 50%; | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
:hover, | ||
:focus { | ||
background-color: ${Colors.navButtonHover()}; | ||
} | ||
:focus:not(:active) { | ||
outline: ${Colors.focusRing()} auto 1px; | ||
} | ||
${IconWrapper} { | ||
background-color: ${Colors.accentWhite()}; | ||
transition: background-color 100ms linear; | ||
} | ||
:focus ${IconWrapper}, :hover ${IconWrapper} { | ||
background-color: ${Colors.navTextHover()}; | ||
} | ||
`; |
Oops, something went wrong.
9d6f360
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-storybook ready!
✅ Preview
https://dagit-storybook-gdnld7x88-elementl.vercel.app
Built with commit 9d6f360.
This pull request is being automatically deployed with vercel-action
9d6f360
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-3gwl862p5-elementl.vercel.app
Built with commit 9d6f360.
This pull request is being automatically deployed with vercel-action