Commit Graph

78 Commits (master)

Author SHA1 Message Date
John Orr 046356689b Fix the aria-hidden setting for the case when a fixed drawer is open. (#5128) 2017-06-15 14:19:20 +01:00
yiinho b353f83e09 Add class to disable js layout switching
This is helpful when using MDL with other frameworks that provide routing such as Angular2.
2016-10-18 15:14:35 -07:00
Ruslan 8f58d1a694 refix radio.js, mocha is true 2016-10-07 11:24:24 +00:00
Ruslan 75e7f9d289 fix data-table unit test 2016-10-07 07:56:03 +00:00
Ruslan 12e2829f61 fix radio unit test 2016-10-07 07:55:37 +00:00
Jonathan Garbee f797e47243 Merge pull request #2009 from google/garbee/hotfix/downgrade
Fixed downgrading to always remove internal references.
2016-01-18 11:31:19 -05:00
Jonathan Garbee 2089a682f7 Refactor snackbar. 2015-12-21 16:55:50 -05:00
Jonathan Garbee c4c8427c61 Fixed downgrading to always remove internal references. 2015-12-19 12:59:08 -05:00
Jonathan Garbee 6c98cc1173 Remove buggy focus test. 2015-12-15 08:54:12 -05:00
Jonathan Garbee 5b491f6f98 Merge pull request #1873 from google/garbee/feature/textfield-autofocus
Textfield can autofocus.
2015-12-15 08:45:35 -05:00
Jonathan Garbee 49eae67100 Merge a11y upgrades with latest layout modifications. 2015-12-13 15:07:57 -05:00
Jonathan Garbee 3c1f58d992 🆕 Textfield checkfocus 2015-12-04 11:13:13 -05:00
Thomas Schiela 51f14884ac drawer button is button element, click and keyboard event handler, tests
removed npm-debug.log

suggested changes for pr

add aria-hidden to drawer at runtimer
2015-11-27 13:37:02 +01:00
Jonathan Garbee 2162e6ddac Textfield can autofocus. 2015-11-12 10:57:34 -05:00
Sérgio Gomes 5363c5df4d Merge branch 'mdl-1.0' 2015-11-02 17:08:56 +00:00
Sérgio Gomes ce3c5fad8e Merge pull request #1779 from google/garbee/downgrade-radio
Downgrade radio components.
2015-11-02 11:54:58 +00:00
Jonathan Garbee f105daaeff Downgrade radio components. 2015-10-20 14:58:58 -04:00
Jonathan Garbee 0fbf69f3f1 Remove automatic name and value for data table checkboxes. 2015-10-20 07:28:17 -04:00
Sérgio Gomes 525423e7dc Merge branch 'mdl-1.0' 2015-10-19 14:37:48 +01:00
Jonathan Garbee 096ce16d81 Textfields can initialize as invalid. 2015-10-18 17:05:02 -04:00
Jonathan Garbee 54d325e371 Merge master. 2015-09-15 15:24:27 -04:00
Sérgio Gomes 41c5408a4a Adding a mocha:closure gulp task, to test closure-compiled JS.
Also reorders mocha task to only happen after JS tasks,
and improves two unit tests by moving code in "describe" blocks to
"before" blocks.
2015-09-11 13:37:45 +01:00
Sérgio Gomes 648a49dc63 Merge branch 'mdl-1.0' 2015-09-09 16:27:38 +01:00
Sérgio Gomes a90939016a Fixing menu unit test to not use internal properties 2015-09-08 14:49:10 +01:00
Jonathan Garbee 83dcbce658 Add Snackbar 🍬 2015-09-01 10:20:45 -04:00
Douglas d3e5405571 Change in the function upgradElementsInternal to enable the upgrade of child elements created by parent element's upgrade, like RippleContainerElement in Checkbox. The problem was happening when the element was created dynamically. 2015-08-31 13:47:31 +01:00
Surma 3b1442627e Merge pull request #1498 from dopic/master
Upgrade problem in dynamically created elements
2015-08-31 13:46:36 +01:00
Douglas 13f8653953 Change in the function upgradElementsInternal to enable the upgrade of child elements created by parent element's upgrade, like RippleContainerElement in Checkbox. The problem was happening when the element was created dynamically. 2015-08-29 00:49:12 -03:00
Jonathan Garbee 0fbc988522 Add name and value options to datatable selectors. Fix data table tests to run. 2015-08-28 12:07:47 -04:00
Djalma Araujo 23922685c5 #1355 - More refactoring in tests 2015-08-25 09:27:45 +01:00
Djalma Araujo a9f50ef19d #1355 - Auto Check Checkboxes when the row has the is-selected class 2015-08-25 09:27:45 +01:00
Roger Hu 003a2551c8 Refactor click handler into a separate function.
Allows the handler to be reused for a different event.

Add test for MaterialLayoutTab.

Refactor to expose a programatic way of selecting a tab.
2015-08-18 12:02:11 -07:00
Surma 7752a4effc Revert "#1355 - Auto Check Checkboxes when the row has the is-selected class" 2015-08-12 11:50:43 +01:00
Djalma Araujo 16e324daba #1355 - Refactoring 2015-08-11 18:31:00 -03:00
Djalma Araujo 50ee8ca98f #1355 - Auto Check Checkboxes when the row has the is-selected class 2015-08-11 18:01:04 -03:00
Surma 257aa342f9 Wrap spinner in IIFE 2015-08-10 11:34:31 +01:00
Jonathan Garbee 7f14b0b6b3 Added unit test for checking sibling updates on change. (Closes #1229) 2015-07-28 15:32:37 +01:00
Jonathan Garbee f16e7c8bc8 Added new methods for checking state on other components. Overhauled
tests naming and style.

Checkbox, Icon toggle, Radio, and Switch each receive new methods for
checking state.

Test suite language updated for better output. Expanded test coverage.
Finally, code style improvements.
2015-07-26 07:10:46 -04:00
Xingchen Hong 384315ca64 Fixed test case 'should upgrade a single component to an element by using its CSS classes' to reveal a bug in the current `upgradeElement` caused by `dataUpgraded` not being correctly updated. Added test case 'should upgrade a single component to an element' to reveal a bug in the current `upgradeElement` caused by unreliably checking of upgraded class.
Added `getUpgradedListOfElement_(element)` for getting a list of names of the upgraded classes.
Made `isElementUpgraded_(element, jsClass)` more reliable.
In `upgradeElementInternal(element, optJsClass)`:
* Added argument verification.
* Improved class search efficiency when jsClass is omitted.
* Made `dataUpgraded` update correctly. (Closes #1115)
2015-07-20 21:53:46 +09:00
Jonathan Garbee 9799f6ccf2 Expanded componentHandler unit tests. Removed uneeded comments. 2015-07-16 09:52:21 -04:00
Xingchen Hong 260c88f1bb Add upgradeElements method to componentHandler. 2015-07-16 09:46:59 -04:00
Jonathan Garbee e3d5f5436d Finish off tests (Closes #922) 2015-07-16 09:46:58 -04:00
Nicolas Garnier ee60fcea61 Testing upgrading an element using its CSS classes. 2015-07-16 09:46:58 -04:00
Jonathan Garbee 42955b1f43 Initial test for component handler. 2015-07-16 09:46:58 -04:00
Jonathan Garbee 59ac27904b Assign class string as widget name. (Closes #481) 2015-06-26 11:58:00 +01:00
Sérgio Gomes 3cf12a3215 Removing column-layout component.
The grid component replaces and improves on its functionality.
2015-04-28 11:58:44 +01:00
Addy Osmani f2e12387b9 Fixes #157 - adds License file headers 2015-04-11 19:33:04 +01:00
Addy Osmani ef43a51d45 Rename wsk -> mdl 2015-04-10 10:54:01 +01:00
Alexander Surma a2d652c89b Implement progress bar component (closes #88)
commit b8cb14ab0a511b806a65102f8f032fd40bf361bc
Author: Alexander Surma <surma@surmair.de>
Date:   Wed Apr 1 12:16:57 2015 +0100

    Invert CSS hack logic

commit f58bf29ee4d376c97d9b673e76ac421eb0b2efae
Author: Alexander Surma <surma@surmair.de>
Date:   Tue Mar 31 15:43:28 2015 +0100

    Use feature detection

commit 095789e2bb09fcc3b2cfc66f7e9bf768a9e9f8cb
Author: Alexander Surma <surma@surmair.de>
Date:   Tue Mar 31 15:34:31 2015 +0100

    Revert "Add browser detection"

    This reverts commit 82f6c28162d1f68de3dbdaf42f0975122305a8bf.

commit 71d3f147da903d3e6fb8315dd1638dc035aa2d2d
Author: Alexander Surma <surma@surmair.de>
Date:   Tue Mar 31 14:37:17 2015 +0100

    Colorize aux bar on IE and FF

commit 82f6c28162d1f68de3dbdaf42f0975122305a8bf
Author: Alexander Surma <surma@surmair.de>
Date:   Tue Mar 31 14:15:43 2015 +0100

    Add browser detection

commit 06f347bba0d5b1979f07357a460dd7608b3063ad
Author: Alexander Surma <surma@surmair.de>
Date:   Tue Mar 31 14:01:51 2015 +0100

    Externalize SVG again

commit cfdc4f276fbe526a0a671601587fc2630129af10
Author: Alexander Surma <surma@surmair.de>
Date:   Mon Mar 30 15:47:13 2015 +0100

    Adhere to styleguide

commit cf4c72aebe94a1a59fa4b6e02b0b44888ef3a484
Author: Alexander Surma <surma@surmair.de>
Date:   Mon Mar 30 12:50:38 2015 +0100

    Inline SVG for progress bar

commit bc9e77d73462e2466d4685d381dc3bceeadeb12b
Author: Alexander Surma <surma@surmair.de>
Date:   Mon Mar 30 12:46:44 2015 +0100

    Add unit tests for progress bar

commit 9e70b49480109d248d45737e80e517e04c78d4ac
Author: Alexander Surma <surma@surmair.de>
Date:   Fri Mar 27 17:48:11 2015 +0000

    Speed up buffering animation

commit 45e7dd3751e389c69c64ef33b912dda793b3f733
Author: Alexander Surma <surma@surmair.de>
Date:   Fri Mar 27 16:15:03 2015 +0000

    Add circle svg for buffer bar

commit ade9276219db103a11fbcfc3908201a8d21e845c
Author: Alexander Surma <surma@surmair.de>
Date:   Fri Mar 27 15:24:17 2015 +0000

    Fix colors

commit ba10830796299571c96357fe8871678b3677046c
Author: Alexander Surma <surma@surmair.de>
Date:   Fri Mar 27 14:54:27 2015 +0000

    Implement indeterminate progress bar

commit 71bac12de651337cc3634ded6133372f54bbc6bd
Author: Alexander Surma <surma@surmair.de>
Date:   Fri Mar 27 14:23:24 2015 +0000

    Add support for buffer bar

commit 9933563f229d3bb4593110cc84e77a9eb46ae2a9
Author: Alexander Surma <surma@surmair.de>
Date:   Thu Mar 26 22:26:52 2015 +0000

    Implement basic progress bar
2015-04-01 13:35:38 +01:00
Alexander Surma 1e9a034f81 Use single-line vars 2015-03-19 16:56:18 +00:00