-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(material/tree): make "Load More" tree node a button
in the "Load More" tree demo, fix unable to press "Load More" button when navigating onto it using arrow keys.
- Loading branch information
Showing
3 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/components-examples/material/tree/tree-loadmore/tree-loadmore-example.css
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,20 @@ | ||
.load-more { | ||
border-radius: 10px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
cursor: pointer; | ||
} | ||
.load-more:focus { | ||
/* | ||
Display a focus state for the "Load More" button. | ||
0.12 is a common value in Material Design | ||
*/ | ||
background: rgba(0, 0, 0, 0.12); | ||
} | ||
.load-more:hover { | ||
/* | ||
Display a focus state for the "Load More" button. | ||
0.04 is a common value in Material Design | ||
*/ | ||
background: rgba(0, 0, 0, 0.04); | ||
} |
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