-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: change defaults, add prefix to css vars (#99)
* feat!: change default color subheader, footer icons & default icon size * feat!: add prefix to navigation css vars * fix: readme and story Add css vars to readme Fix HighlightedNode in story Rename css var --gn-aside-header-header-divider-line-color * chore: remove useless storybook assets * fix: fix highlighted item in story
- Loading branch information
Showing
20 changed files
with
114 additions
and
100 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -30,3 +30,19 @@ npm install --dev @gravity-ui/uikit@^3.0.2 @bem-react/[email protected] react@^16. | |
```ts | ||
import {AsideHeader} from '@gravity-ui/navigation'; | ||
``` | ||
|
||
## CSS variables | ||
|
||
Used for themization Navigation's components | ||
|
||
### AsideHeader vars | ||
|
||
| Name | Description | Default | | ||
| :----------------------------------------------------- | :--------------------------------------------------------------- | :--------------------------------------------------------------------- | | ||
| `--gn-aside-header-background-color` | Сolor of decorations and selected items | `--g-color-base-warning-light` | | ||
| `--gn-aside-header-subheader-divider-line-color` | Divider line color for withDecoration and expanded `AsideHeader` | `--g-color-base-warning-light` | | ||
| `--gn-aside-header-collapse-button-divider-line-color` | | `--gn-aside-header-subheader-divider-line-color` | | ||
| `--gn-aside-header-footer-item-icon-color` | | `--g-color-text-primary` | | ||
| `--gn-aside-header-subheader-item-icon-color` | | `--g-color-text-primary` | | ||
| `--gn-aside-header-item-icon-background-size` | Background size used when `AsideHeader` is compact | `38px` | | ||
| `--gn-aside-header-divider-line-color` | Vertical color divider between `AsideHeader` and content | Light theme: `transparent`, Dark theme: `--g-color-line-generic-solid` | |
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
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
Oops, something went wrong.