Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

$mdThemingProvider: extendPalette won't accept hex values with capital letters #1013

Closed
epelc opened this issue Dec 20, 2014 · 0 comments
Closed

Comments

@epelc
Copy link
Contributor

epelc commented Dec 20, 2014

I was getting this error for a while but I just figured out the colorToRgbaArray function doesn't accept any hex values with upper case letters.

Error

Uncaught Error: Color 15B374, in palette undefined's hue 500, is invalid. Hex or rgb(a) color expected.

Example

var neonRedMap = $mdThemingProvider.extendPalette('green', {
        // convert all upper case letters to lower case for this to work
        '500': '15B374'
    })
@epelc epelc changed the title $mdThemingProvider: extendPalette won't hex values with capital letters $mdThemingProvider: extendPalette won't accept hex values with capital letters Dec 20, 2014
@ThomasBurleson ThomasBurleson added this to the 0.7.0 milestone Jan 6, 2015
@ajoslin ajoslin closed this as completed in 9b45af5 Jan 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants