Skip to content

Commit

Permalink
Merge pull request #359 from materializecss/v2-dev
Browse files Browse the repository at this point in the history
Preperation for 2.0.0 alpha
  • Loading branch information
wuda-io authored Apr 19, 2023
2 parents 1e41ec3 + c2e996c commit 0aa39f2
Show file tree
Hide file tree
Showing 195 changed files with 8,326 additions and 25,585 deletions.
305 changes: 53 additions & 252 deletions Gruntfile.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
</a>
</p>

<h3 align="center">MaterializeCSS</h3>
<h3 align="center">Materialize</h3>

<p align="center">
Materialize, a CSS Framework based on material design.
Materialize, a CSS Framework based on Material Design.
<br>
<a href="https://materializecss.github.io/materialize/"><strong>-- Browse the docs --</strong></a>
<br>
Expand Down
8 changes: 1 addition & 7 deletions docs/css/ghpages-materialize.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ document.addEventListener("DOMContentLoaded", function() {
});

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

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

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

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

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

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

Expand Down
Loading

0 comments on commit 0aa39f2

Please sign in to comment.