Skip to content

Commit 0aa39f2

Browse files
authored
Merge pull request #359 from materializecss/v2-dev
Preperation for 2.0.0 alpha
2 parents 1e41ec3 + c2e996c commit 0aa39f2

File tree

195 files changed

+8326
-25585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+8326
-25585
lines changed

Gruntfile.js

+53-252
Large diffs are not rendered by default.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
</a>
55
</p>
66

7-
<h3 align="center">MaterializeCSS</h3>
7+
<h3 align="center">Materialize</h3>
88

99
<p align="center">
10-
Materialize, a CSS Framework based on material design.
10+
Materialize, a CSS Framework based on Material Design.
1111
<br>
1212
<a href="https://materializecss.github.io/materialize/"><strong>-- Browse the docs --</strong></a>
1313
<br>

docs/css/ghpages-materialize.css

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/init.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ document.addEventListener("DOMContentLoaded", function() {
196196
});
197197

198198
M.Dropdown.init(document.querySelectorAll('.dropdown-trigger'), {});
199+
M.Dropdown.init(document.querySelector('#dropdown-demo-left'), {alignment: 'left', constrainWidth: false});
200+
M.Dropdown.init(document.querySelector('#dropdown-demo-right'), {alignment: 'right', constrainWidth: false});
199201

200202
M.Parallax.init(document.querySelectorAll('.parallax'), {});
201203

@@ -218,7 +220,9 @@ document.addEventListener("DOMContentLoaded", function() {
218220

219221
M.Sidenav.init(document.querySelectorAll('.sidenav'), {});
220222

221-
M.TapTarget.init(document.querySelectorAll('.tap-target'), {});
223+
const tts = M.TapTarget.init(document.querySelectorAll('.tap-target'), {});
224+
document.querySelector('#open-taptarget')?.addEventListener('click', e => tts[0].open());
225+
document.querySelector('#close-taptarget')?.addEventListener('click', e => tts[0].close());
222226

223227
M.FormSelect.init(document.querySelectorAll('select:not(.disabled)'), {});
224228

0 commit comments

Comments
 (0)