Skip to content

Commit e0a57ec

Browse files
committed
fix: make action buttons more visible
1 parent 87b7203 commit e0a57ec

9 files changed

+30
-21
lines changed

css-transitions.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ <h5>Scale</h5>
2323
<code class="language-html">scale-in</code> to scale the element up until it is shown.
2424
</p>
2525
<a id="scale-demo" href="#!" class="btn-floating btn-large scale-transition"><i class="material-icons">add</i></a>
26-
<a id="scale-demo-trigger" href="#!" class="btn right">Toggle Scale</a>
26+
27+
<a id="scale-demo-trigger" href="#!" class="btn tonal">Toggle Scale</a>
28+
2729
<pre style="padding-top: 0px">
2830
<span class="copyMessage">Copied!</span>
2931
<i class="material-icons copyButton">content_copy</i>

feature-discovery.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
wrong time, they can be intrusive and annoying.
1919
</p>
2020

21-
<a class="waves-effect waves-light btn" id="open-taptarget">Open tap target</a>&nbsp;&nbsp;&nbsp;&nbsp;
22-
<a class="waves-effect waves-light btn" id="close-taptarget">Close tap target</a>
21+
<a class="waves-effect waves-light btn tonal" id="open-taptarget">Open tap target</a>&nbsp;&nbsp;&nbsp;&nbsp;
22+
<a class="waves-effect waves-light btn tonal" id="close-taptarget">Close tap target</a>
2323

2424
<div class="fixed-action-btn" style="bottom: 45px; right: 24px">
2525
<a class="btn btn-floating btn-large" id="menu">

grid.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h3 class="header">Container</h3>
154154

155155
<h5>Demo</h5>
156156
<p>Try the button below to see what the page looks like without containers.</p>
157-
<a id="container-toggle-button" class="btn waves-effect waves-light">Turn off Containers</a>
157+
<a id="container-toggle-button" class="btn tonal waves-effect waves-light">Turn off Containers</a>
158158

159159
<!-- Container Visual Demo -->
160160
<div class="row">

modals.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
of the trigger. To add a close button, just add the class
1717
<code class="language-css">.modal-close</code> to your button.
1818
</p>
19-
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a>
19+
20+
<a class="waves-effect waves-light btn tonal modal-trigger" href="#modal1">Show Modal</a>
21+
2022
<div id="modal1" class="modal">
2123
<div class="modal-content">
2224
<h4>Modal Header</h4>
@@ -340,7 +342,9 @@ <h4>Modal Header</h4>
340342

341343
<div id="bottom-sheet" class="scrollspy section">
342344
<h3 class="header">Bottom Sheet Modals</h3>
343-
<a class="waves-effect waves-light btn modal-trigger" href="#modal3">Modal Bottom Sheet Style</a>
345+
346+
<a class="waves-effect waves-light btn tonal modal-trigger" href="#modal3">Show BottomSheet Modal</a>
347+
344348
<p>Bottom Sheet Modals are good for displaying actions to the user on the bottom of a screen. They still act the same as regular modals.</p>
345349
<pre><code class="language-html">
346350
<xmp>

parallax.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
Parallax is an effect where the background content or image in this case, is moved at a different speed than the foreground content while scrolling. Check out the
1717
demo to get a better idea of it.
1818
</p>
19-
<a href="parallax-demo.html" target="_blank" class="btn-large waves-effect waves-light">Open Demo</a>
19+
20+
<a href="parallax-demo.html" target="_blank" class="btn tonal waves-effect waves-light">Open Parallax Demo</a>
21+
22+
<p>Exlore an example website with the parallax effect applied.</p>
2023
</div>
2124
<pre><code class="language-html">
2225
<xmp>

pushpin.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
contents on the right.
1717
</p>
1818

19-
<a href="pushpin-demo.html" target="_blank" class="btn-large waves-effect waves-light">Open Demo</a>
19+
<a href="pushpin-demo.html" target="_blank" class="btn tonal waves-effect waves-light">Open Pushpin Demo</a>
2020

2121
<h5>Demo Code</h5>
2222
<pre><code class="language-javascript">

sidenav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<strong>Please note that the sidenav HTML should not be contained within the navbar HTML.</strong>
2121
</p>
2222

23-
<a href="#" data-target="slide-out" class="sidenav-trigger btn">Side nav demo</a>
23+
<a href="#" data-target="slide-out" class="sidenav-trigger btn tonal">Toggle Sidenav</a>
2424

2525
<ul id="slide-out" class="sidenav">
2626
<li>

toasts.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
Materialize provides an easy way for you to send unobtrusive alerts to your users through toasts. These toasts are also placed and sized responsively, try it out by
1616
clicking the button below on different device sizes.
1717
</p>
18-
<button type="button" class="waves-effect waves-light btn" onclick="M.toast({text: 'I am a toast', classes: 'primary'})">Toast!</button>
18+
<button type="button" class="waves-effect waves-light btn tonal" onclick="M.toast({text: 'I am a toast', classes: 'primary'})">Show Toast</button>
1919
<p>To do this, call the M.toast() function programmatically in JavaScript.</p>
2020
<pre><code class="language-javascript">
2121
M.toast({text: 'I am a toast!'})
2222
</code></pre>
2323
<p>One way to add this into your application is to add this as an onclick event to a button.</p>
2424
<pre><code class="language-html">
2525
<xmp>
26-
<button type="button" onclick="M.toast({text: 'I am a toast'})" class="btn">Toast!</button>
26+
<button type="button" onclick="M.toast({text: 'I am a toast'})" class="btn tonal">Show Toast</button>
2727
</xmp>
2828
</code></pre>
2929
</div>
@@ -135,18 +135,18 @@ <h3 class="header">Properties</h3>
135135
<div id="custom-html" class="section scrollspy">
136136
<h3 class="header">Custom HTML</h3>
137137
<p>You can pass in an toastId as the argument as well. This toastId should refer to some template in the HTML that will be used as toast content.</p>
138-
<button type="button" class="waves-effect waves-light btn" onclick="M.toast({toastId: 'my-toast-1'})">Toast 1!</button>
138+
<button type="button" class="waves-effect waves-light btn tonal" onclick="M.toast({toastId: 'my-toast-1'})">Show Toast 1</button>
139139
<template id="my-toast-1">
140140
<div>
141141
This is toast nº1 with a
142142
<a href="https://github.com/materializecss"> link </a>
143143
</div>
144144
</template>
145-
<button type="button" class="waves-effect waves-light btn" onclick="M.toast({toastId: 'my-toast-2', classes: 'primary'})">Toast 2!</button>
145+
<button type="button" class="waves-effect waves-light btn tonal" onclick="M.toast({toastId: 'my-toast-2', classes: 'primary'})">Show Toast 2</button>
146146
<div id="my-toast-2" style="display: none">This is toast nº2 with a <i class="material-icons icon-demo">insert_chart</i></div>
147147
<pre><code class="language-html">
148148
<xmp>
149-
<button type="button" class="btn" onclick="M.toast({toastId: 'my-toast-1'})">Toast 1!</button>
149+
<button type="button" class="btn tonal" onclick="M.toast({toastId: 'my-toast-1'})">Show Toast 1</button>
150150
<template id="my-toast-1">
151151
<div>
152152
This is toast nº1 with a <a href="https://github.com/materializecss"> link </a>
@@ -158,9 +158,9 @@ <h3 class="header">Custom HTML</h3>
158158
<div id="callback" class="scrollspy section">
159159
<h3 class="header">Callback</h3>
160160
<p>You can have the toast callback a function when it has been dismissed.</p>
161-
<button type="button" class="btn" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Toast!</button>
161+
<button type="button" class="btn tonal" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Show Toast</button>
162162
<pre><code class="language-html">
163-
<button type="button" class="btn" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Toast!</button>
163+
<button type="button" class="btn tonal" onclick="M.toast({text: 'I am a toast', completeCallback: function(){alert('Your toast was dismissed')}})">Show Toast</button>
164164
</code></pre>
165165
</div>
166166

@@ -171,7 +171,7 @@ <h3 class="header">Styling Toasts</h3>
171171
you, but you can create your own CSS classes and apply them to toasts. Checkout out our full example below.
172172
</p>
173173

174-
<button type="button" class="waves-effect waves-light btn" onclick="M.toast({text: 'I am a toast!', classes: 'rounded'})">Round Toast!</button>
174+
<button type="button" class="waves-effect waves-light btn tonal" onclick="M.toast({text: 'I am a toast!', classes: 'rounded'})">Show round Toast</button>
175175

176176
<pre><code class="language-javascript">
177177
// 'rounded' is the class I'm applying to the toast

tooltips.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
</p>
1919

2020
<div>
21-
<a href="#" class="btn tooltipped" data-html="true" data-position="bottom" data-tooltip-id="tooltip-content"> Bottom</a>
21+
<a href="#" class="btn tonal tooltipped" data-html="true" data-position="bottom" data-tooltip-id="tooltip-content"> Bottom</a>
2222
<div id="tooltip-content" style="display: grid; align-content: center">
2323
This is a tooltip with a
2424
<a href="https://github.com/materializecss">link</a> and a
2525
<i class="material-icons icon-demo">insert_chart</i>
2626
</div>
27-
<a href="#" class="btn tooltipped" data-position="top" data-tooltip="I am a top tooltip"> Top</a>
28-
<a href="#" class="btn tooltipped" data-position="left" data-tooltip="I am a left tooltip"> Left</a>
27+
<a href="#" class="btn tonal tooltipped" data-position="top" data-tooltip="I am a top tooltip"> Top</a>
28+
<a href="#" class="btn tonal tooltipped" data-position="left" data-tooltip="I am a left tooltip"> Left</a>
2929
<a
3030
href="#"
31-
class="btn tooltipped"
31+
class="btn tonal tooltipped"
3232
data-position="right"
3333
data-tooltip="I am a right tooltip. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nesciunt ducimus possimus quidem voluptatem soluta ex dignissimos, itaque magnam aspernatur eum deleniti delectus, vitae rerum, distinctio quam? Quas sapiente sunt blanditiis?"
3434
>

0 commit comments

Comments
 (0)