-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(rounded): add examples for rounded button #212
- Loading branch information
1 parent
4ef2c16
commit 582cb9e
Showing
14 changed files
with
141 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<auro-button aria-label="arrow-up" rounded iconOnly> | ||
<auro-icon customSize customcolor category="interface" name="arrow-up" slot="icon"></auro-icon> | ||
</auro-button> |
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,4 @@ | ||
<auro-button aria-label="in-flight" rounded iconOnly id="rightAlignElem" style="float: right;"> | ||
Back to Top | ||
<auro-icon customSize customcolor category="interface" name="arrow-up" slot="icon"></auro-icon> | ||
</auro-button> |
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,11 @@ | ||
export function roundedRightAlignExample() { | ||
const rightAlignElem = document.querySelector('#rightAlignElem'); | ||
|
||
rightAlignElem.addEventListener('mouseover', () => { | ||
rightAlignElem.iconOnly = false; | ||
}); | ||
|
||
rightAlignElem.addEventListener('mouseout', () => { | ||
rightAlignElem.iconOnly = true; | ||
}); | ||
} |
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,3 @@ | ||
<auro-button aria-label="arrow-up" rounded> | ||
Primary | ||
</auro-button> |
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,4 @@ | ||
<auro-button aria-label="in-flight" rounded> | ||
Back to Top | ||
<auro-icon customSize customcolor category="interface" name="arrow-up" slot="icon"></auro-icon> | ||
</auro-button> |
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,4 @@ | ||
<auro-button aria-label="arrow-up" rounded iconOnly id="toggledTextElem"> | ||
Text is now shown! | ||
<auro-icon customSize customcolor category="interface" name="arrow-up" slot="icon"></auro-icon> | ||
</auro-button> |
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,11 @@ | ||
export function toggledTextExample() { | ||
const toggledTextElem = document.querySelector('#toggledTextElem'); | ||
|
||
toggledTextElem.addEventListener('mouseover', () => { | ||
toggledTextElem.iconOnly = false; | ||
}); | ||
|
||
toggledTextElem.addEventListener('mouseout', () => { | ||
toggledTextElem.iconOnly = true; | ||
}); | ||
} |
Oops, something went wrong.