-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add anker docs and change naming of anker helper classes
- Loading branch information
1 parent
d52f9e2
commit 4a6f3f3
Showing
40 changed files
with
430 additions
and
391 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
2 changes: 1 addition & 1 deletion
2
packages/dnb-design-system-portal/src/pages/uilib/helper-classes.md
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
header: 'UI Library' | ||
title: 'Helper Classes' | ||
status: 'dep' | ||
status: 'wip' | ||
draft: false | ||
order: 5 | ||
--- | ||
|
39 changes: 39 additions & 0 deletions
39
packages/dnb-design-system-portal/src/pages/uilib/helper-classes/anker.md
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,39 @@ | ||
--- | ||
header: 'UI Library' | ||
title: 'Anker' | ||
draft: false | ||
order: 1 | ||
--- | ||
|
||
import { IconPrimary as Icon } from 'dnb-ui-lib/src' | ||
|
||
# Anker | ||
|
||
Beside that the Anker Tag gets assigned by default - or let's say, by only importing the core styles, there are also some classes to handle the visual states manually. | ||
|
||
## Default Styles | ||
|
||
- `a` <a href="/" >Anker with default style</a> | ||
- `.dnb-hover-style` <a href="/" class="dnb-hover-style">Hover Style</a> | ||
- `.dnb-active-style` <a href="/" class="dnb-active-style">Active Style</a> | ||
- `.dnb-focus-style` <a href="/" class="dnb-focus-style">Focus Style</a> | ||
- `.dnb-with-animation` <a href="/" class="dnb-with-animation">With a special animation Style</a> | ||
- <a>No href</a> results in `user-select: none;` | ||
|
||
## With Icon | ||
|
||
- <a href="/">Anker with Icon <Icon icon="chevron_right" /></a> | ||
- <p> | ||
Eros semper blandit tellus mollis primis quisque platea sollicitudin | ||
ipsum <a href="/">Inside a Paragraph <Icon icon="bell" /></a> auctor cursus mauris porta consectetur natoque vehicula vestibulum feugiat ultrices vitae fermentum eros euismod imperdiet eleifend justo vivamus posuere | ||
</p> | ||
- <h2> | ||
<a href="/">Inside Headings <Icon icon="bell" /></a> H2 | ||
</h2> | ||
|
||
## Manipulation | ||
|
||
- `.dnb-no-anker-animation` <a href="/" class="dnb-no-anker-animation">No Animation</a> | ||
- `.dnb-no-anker-style` <a href="/" class="dnb-no-anker-style">No Style</a> | ||
- `.dnb-no-anker-hover` <a href="/" class="dnb-no-anker-hover">No Hover</a> | ||
- `.dnb-no-anker-underline` <a href="/" class="dnb-no-anker-underline">No Underline</a> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
header: 'UI Library' | ||
title: 'Demos' | ||
status: 'wip' | ||
draft: false | ||
draft: true | ||
--- | ||
|
||
# Demo Apps | ||
|
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.