-
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
04780b1
commit 8669f8a
Showing
7 changed files
with
40 additions
and
0 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
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 toggleText 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 toggleText 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; | ||
}); | ||
} |