-
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
9892adb
commit a871baf
Showing
10 changed files
with
106 additions
and
6 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 id="rightAlignElem" style="float: right;"> | ||
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,21 @@ | ||
export function roundedRightAlignExample() { | ||
const rightAlignElem = document.querySelector('#rightAlignElem'); | ||
|
||
// The mouseover and mouseout events are to simulate toggling text for mouse users | ||
rightAlignElem.addEventListener('mouseover', () => { | ||
rightAlignElem.iconOnly = false; | ||
}); | ||
|
||
rightAlignElem.addEventListener('mouseout', () => { | ||
rightAlignElem.iconOnly = true; | ||
}); | ||
|
||
// The focusin and focusout events are to simulate toggling text for keyboard users | ||
rightAlignElem.addEventListener('focusin', () => { | ||
rightAlignElem.iconOnly = false; | ||
}); | ||
|
||
rightAlignElem.addEventListener('focusout', () => { | ||
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,21 @@ | ||
export function toggledTextExample() { | ||
const toggledTextElem = document.querySelector('#toggledTextElem'); | ||
|
||
// The mouseover and mouseout events are to simulate toggling text for mouse users | ||
toggledTextElem.addEventListener('mouseover', () => { | ||
toggledTextElem.iconOnly = false; | ||
}); | ||
|
||
toggledTextElem.addEventListener('mouseout', () => { | ||
toggledTextElem.iconOnly = true; | ||
}); | ||
|
||
// The focusin and focusout events are to simulate toggling text for keyboard users | ||
toggledTextElem.addEventListener('focusin', () => { | ||
toggledTextElem.iconOnly = false; | ||
}); | ||
|
||
toggledTextElem.addEventListener('focusout', () => { | ||
toggledTextElem.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
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