These are chat archives for angular/material

20th
Mar 2017
S.Brameshmadhav
@sbmadhav
Mar 20 2017 01:44
is the 1.6 dependecy resolved ? any plans ? I am still seeing this error : npm WARN angular-material@1.1.3 requires a peer of angular@>=1.3 <1.6 but none was installed.
itsthomas
@itsthomas
Mar 20 2017 16:25

If I change this code:

var allInstances = $('.js-reveal-target');
if ($('.js-reveal-target:hidden').length == 0) {
                    revealMoreButtons.hide();
                }

To this:

var allInstances = $('.js-reveal-target');
if (allInstances:hidden.length == 0) {
                    revealMoreButtons.hide();
                }

it doesn't work!! Does any one know why?

Todd H
@dolthead
Mar 20 2017 21:52
I created a custom theme, but the md-primary button color matches the header/footer background color. They are both pulling from the "500" color. How do I configure it to use one color for md-primary buttons (069abc) and another color for the default app color (34495e)? Here is the full definition:
$mdThemingProvider.definePalette('xaPrimary', {
            '50': 'e7e9ec',
            '100': 'c2c8cf',
            '200': '9aa4af',
            '300': '71808e',
            '400': '526476',
            '500': '34495e', // <-- anchor color
            '600': '2f4256',
            '700': '27394c',
            '800': '213142',
            '900': '152131',
            'A100': '72adff',
            'A200': '3f8fff',
            'A400': '0c71ff',
            'A700': '0065f1',
            'contrastDefaultColor': 'light',
            'contrastDarkColors': '50 100 200 A100 A200'
        });
$mdThemingProvider.theme('default')
            .primaryPalette('xaPrimary');