Skip to content

Commit

Permalink
fix icon-button docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerei committed Mar 24, 2024
1 parent d181c2a commit 8a98235
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions site/components/chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ title: Button
Input chip
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand All @@ -146,7 +146,7 @@ title: Button
Input chip
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand All @@ -159,7 +159,7 @@ title: Button
Disabled
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand All @@ -175,7 +175,7 @@ title: Button
Input chip
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand All @@ -188,7 +188,7 @@ title: Button
Input chip
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand All @@ -201,7 +201,7 @@ title: Button
Disabled
</div>
<div class="chip__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/components/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ title: Dialog
<div class="dialog__container">
<div class="top-app-bar display-none@tablet">
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions site/components/navigation-drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ title: Navigation Drawer
<div class="flex-grow-1">
<div class="top-app-bar">
<div class="top-app-bar__action display-none@laptop">
<label for="standard-drawer-toggle" class="button button--icon">
<label for="standard-drawer-toggle" class="icon-button">
<span class="material-icons">menu</span>
</label>
</div>
Expand All @@ -60,7 +60,7 @@ title: Navigation Drawer
{% example sandbox %}
<div class="top-app-bar top-app-bar--sticky-top">
<div class="top-app-bar__action">
<label for="modal-drawer-toggle" class="button button--icon">
<label for="modal-drawer-toggle" class="icon-button">
<span class="material-icons">menu</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/components/navigation-rail.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Navigation rail
{% example sandbox %}
<div class="navigation-rail">
<div class="navigation-rail__container">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">menu</span>
</button>
<button type="button" class="button button--floating-action">
Expand Down
4 changes: 2 additions & 2 deletions site/components/side-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: Sheet
Title
</div>
<div class="top-app-bar__action display-none@laptop">
<label for="standard-sheet-toggle" class="button button--icon">
<label for="standard-sheet-toggle" class="icon-button">
<span class="material-icons">info</span>
</label>
</div>
Expand Down Expand Up @@ -45,7 +45,7 @@ title: Sheet
Title
</div>
<div class="top-app-bar__action">
<label for="modal-sheet-toggle" class="button button--icon">
<label for="modal-sheet-toggle" class="icon-button">
<span class="material-icons">info</span>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/components/snackbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title: Snackbar
<button type="button" class="button button--text">Retry</button>
</div>
<div class="padding-1">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">close</span>
</button>
</div>
Expand Down
32 changes: 16 additions & 16 deletions site/components/top-app-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ title: App Bar
{% example %}
<div class="top-app-bar">
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">menu</span>
</button>
</div>
<div class="top-app-bar__title text-align-center">
Title
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">search</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">notifications</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">account_circle</span>
</button>
</div>
Expand All @@ -39,25 +39,25 @@ title: App Bar
{% example %}
<div class="top-app-bar">
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">arrow_back</span>
</button>
</div>
<div class="top-app-bar__title">
Title
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">search</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">notifications</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">account_circle</span>
</button>
</div>
Expand All @@ -69,25 +69,25 @@ title: App Bar
{% example %}
<div class="top-app-bar top-app-bar--medium">
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">arrow_back</span>
</button>
</div>
<div class="top-app-bar__title">
Title
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">search</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">notifications</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">account_circle</span>
</button>
</div>
Expand All @@ -99,25 +99,25 @@ title: App Bar
{% example %}
<div class="top-app-bar top-app-bar--large">
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">arrow_back</span>
</button>
</div>
<div class="top-app-bar__title">
Title
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">search</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">notifications</span>
</button>
</div>
<div class="top-app-bar__action">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">account_circle</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/examples/dashboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Posts

<div class="top-app-bar top-app-bar--sticky-top">
<div class="top-app-bar__action display-none@laptop">
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">menu</span>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion site/examples/dashboard/new.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: New Post

<div class="top-app-bar top-app-bar--sticky-top">
<div class="top-app-bar__action">
<a href="../dashboard.html" class="button button--icon">
<a href="../dashboard.html" class="icon-button">
<span class="material-icons">arrow_back</span>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions site/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ You can learn more about BEM rules from here: http://getbem.com/ .
Material UI works well with [Material Icons](https://fonts.google.com/icons?selected=Material+Icons):

{% example %}
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<span class="material-icons">edit</span>
</button>
{% endexample %}

Or use svg format icon:

{% example %}
<button type="button" class="button button--icon">
<button type="button" class="icon-button">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
</button>
{% endexample %}
2 changes: 1 addition & 1 deletion themes/docs/layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<div class="flex-grow-1 min-width-0">
<div class="top-app-bar top-app-bar--sticky-top display-none@tablet">
<div class="top-app-bar__action">
<label for="drawer-toggle" class="button button--icon">
<label for="drawer-toggle" class="icon-button">
<span class="material-icons">menu</span>
</label>
</div>
Expand Down

0 comments on commit 8a98235

Please sign in to comment.