From 70225254ca51b7778ca53b6bcdb1f6474b3fc3c6 Mon Sep 17 00:00:00 2001 From: Jonathan Garbee Date: Mon, 7 Mar 2016 10:19:57 -0500 Subject: [PATCH 1/8] Fix snackbar position on mobile. --- src/snackbar/_snackbar.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/snackbar/_snackbar.scss b/src/snackbar/_snackbar.scss index c0f8a1010..ac975985e 100644 --- a/src/snackbar/_snackbar.scss +++ b/src/snackbar/_snackbar.scss @@ -29,7 +29,7 @@ justify-content: space-between; font-family: $preferred_font; will-change: transform; - transform: translate(-50%, 80px); + transform: translate(0, 80px); transition: transform 0.25s $animation-curve-fast-out-linear-in; pointer-events: none; @media(max-width: $snackbar-tablet-breakpoint - 1) { @@ -42,11 +42,16 @@ min-width: 288px; max-width: 568px; border-radius: 2px; + transform: translate(-50%, 80px); } &--active { - transform: translate(-50%, 0); + transform: translate(0, 0); pointer-events: auto; transition: transform 0.25s $animation-curve-linear-out-slow-in; + + @media(min-width: $snackbar-tablet-breakpoint) { + transform: translate(-50%, 0); + } } &__text { From 18d7ca3aa39f42db86a8c1970c9c100e3fe0c753 Mon Sep 17 00:00:00 2001 From: Waverley Design Date: Thu, 17 Mar 2016 19:06:57 +1000 Subject: [PATCH 2/8] Fix grammatical error --- templates/portfolio/portfolio-example01.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/portfolio/portfolio-example01.html b/templates/portfolio/portfolio-example01.html index 44bf55059..a0dd307a0 100644 --- a/templates/portfolio/portfolio-example01.html +++ b/templates/portfolio/portfolio-example01.html @@ -78,7 +78,7 @@

Introduction

-

Initial Idea's

+

Initial Ideas

From a3c91bfbffeff73f607fd020e6ec20ecdf059252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Thu, 17 Mar 2016 16:07:46 +0000 Subject: [PATCH 3/8] Bump to 1.1.3 --- bower.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index 895fdd53c..3f205e172 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "material-design-lite", - "version": "1.1.2", + "version": "1.1.3", "homepage": "https://github.com/google/material-design-lite", "authors": [ "Material Design Lite team" diff --git a/package.json b/package.json index f070b6f40..6a4021fc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "material-design-lite", - "version": "1.1.2", + "version": "1.1.3", "description": "Material Design Components in CSS, JS and HTML", "private": true, "license": "Apache-2.0", From 3d97a05b1a345bb26c86a523545339f8c300652b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Fri, 18 Mar 2016 12:14:47 +0000 Subject: [PATCH 4/8] Small tweak to make Closure compiler happy --- src/mdlComponentHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mdlComponentHandler.js b/src/mdlComponentHandler.js index 843a5ac6b..eee36cd3c 100644 --- a/src/mdlComponentHandler.js +++ b/src/mdlComponentHandler.js @@ -248,10 +248,10 @@ componentHandler = (function() { */ function upgradeElementsInternal(elements) { if (!Array.isArray(elements)) { - if (typeof elements.item === 'function') { - elements = Array.prototype.slice.call(/** @type {Array} */ (elements)); - } else { + if (elements instanceof Element) { elements = [elements]; + } else { + elements = Array.prototype.slice.call(elements); } } for (var i = 0, n = elements.length, element; i < n; i++) { From 351d98411d70598585d7f7ee770262ff94cf55a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Mon, 21 Mar 2016 13:14:44 +0000 Subject: [PATCH 5/8] Fix downgrade event firing (bug introduced in #4191) --- src/mdlComponentHandler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mdlComponentHandler.js b/src/mdlComponentHandler.js index eee36cd3c..a881014fc 100644 --- a/src/mdlComponentHandler.js +++ b/src/mdlComponentHandler.js @@ -367,6 +367,7 @@ componentHandler = (function() { ev = document.createEvent('Events'); ev.initEvent('mdl-componentdowngraded', true, true); } + component.element_.dispatchEvent(ev); } } From f976806c9d1815b5634cc31850c487dba20a6b77 Mon Sep 17 00:00:00 2001 From: Jonathan Garbee Date: Sun, 27 Mar 2016 09:02:59 -0400 Subject: [PATCH 6/8] Update button note to reflect disabled classes purpose. --- src/button/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/button/README.md b/src/button/README.md index 2b40cb351..1ad51868a 100755 --- a/src/button/README.md +++ b/src/button/README.md @@ -55,5 +55,5 @@ The MDL CSS classes apply various predefined visual and behavioral enhancements | `mdl-button--accent` | Applies *accent* color display effect | Colors are defined in `material.min.css` | | `mdl-js-ripple-effect` | Applies *ripple* click effect | May be used in combination with any other classes | ->**Note:** Disabled versions of all the available button types are provided, and are invoked with the standard HTML boolean attribute `disabled`. ``. Alternatively, the `mdl-button--disabled` class can be used to achieve the same result. +>**Note:** Disabled versions of all the available button types are provided, and are invoked with the standard HTML boolean attribute `disabled`. ``. Alternatively, the `mdl-button--disabled` class can be used to achieve the same style but it does not disable the functionality of the element. >This attribute may be added or removed programmatically via scripting. From ba6adeea9d31dd4ad8c60567aa767c3a4f3592fb Mon Sep 17 00:00:00 2001 From: Jonathan Garbee Date: Wed, 6 Apr 2016 19:14:18 -0400 Subject: [PATCH 7/8] Remove automatic name/value example. Functionality was removed before publishing. --- src/data-table/README.md | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/data-table/README.md b/src/data-table/README.md index f9ed775bb..63ff51ec2 100644 --- a/src/data-table/README.md +++ b/src/data-table/README.md @@ -147,36 +147,6 @@ A data-table without select checkboxes containing mostly text data. ``` -A table that has name and values for the checkboxes. -```html - - - - - - - - - - - - - - - - - - - - - - - - - -
MaterialQuantityUnit price
Acrylic (Transparent)250$2.90
Plywood (Birch)50$1.25
Laminate (Gold on Blue)10$12.35
-``` - ## Configuration options The MDL CSS classes apply various predefined visual and behavioral enhancements to the data-table. The table below lists the available classes and their effects. From d0623c0c8473d397e2a49a7fea737e3b32b9c4d1 Mon Sep 17 00:00:00 2001 From: Joey Padasian Date: Thu, 12 May 2016 17:36:03 +0100 Subject: [PATCH 8/8] eslint error fixes --- src/layout/layout.js | 1 - src/mdlComponentHandler.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layout/layout.js b/src/layout/layout.js index b479f9096..9e1e4e685 100644 --- a/src/layout/layout.js +++ b/src/layout/layout.js @@ -557,7 +557,6 @@ }); tab.show = selectTab; - } window['MaterialLayoutTab'] = MaterialLayoutTab; diff --git a/src/mdlComponentHandler.js b/src/mdlComponentHandler.js index a881014fc..d7862acc5 100644 --- a/src/mdlComponentHandler.js +++ b/src/mdlComponentHandler.js @@ -230,7 +230,7 @@ componentHandler = (function() { var ev; if ('CustomEvent' in window && typeof window.CustomEvent === 'function') { ev = new Event('mdl-componentupgraded', { - 'bubbles': true, 'cancelable': false + bubbles: true, cancelable: false }); } else { ev = document.createEvent('Events'); @@ -361,7 +361,7 @@ componentHandler = (function() { var ev; if ('CustomEvent' in window && typeof window.CustomEvent === 'function') { ev = new Event('mdl-componentdowngraded', { - 'bubbles': true, 'cancelable': false + bubbles: true, cancelable: false }); } else { ev = document.createEvent('Events');