Skip to content

Conversation

muffinresearch
Copy link
Contributor

@muffinresearch muffinresearch commented May 9, 2016

Adds theme preview on hover and focus.

Focus styles will need UX input and they probably should be customised and toned down in this specific application.

Fixes mozilla/addons#9585

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e97eb95 on muffinresearch:add-theme-preview into 74e923d on mozilla:master.

static propTypes = {
id: PropTypes.number.isRequired,
type: PropTypes.string.isRequired,
accentcolor: PropTypes.string,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it should be camelCased.

Copy link
Contributor Author

@muffinresearch muffinresearch May 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the key expected by the theme preview (not sure why) - so I kept it simple rather than making the component have a different key in this case.

I'll do a test and see if it works with camel-case instead if it does we can change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep it needs to be the lower-case key.

@mstriemer
Copy link
Contributor

I couldn't set this up to work locally but I trust that it works.

r+wc

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e734e21 on muffinresearch:add-theme-preview into 780271e on mozilla:master.

@muffinresearch muffinresearch merged commit 321e924 into mozilla:master May 10, 2016
@muffinresearch muffinresearch deleted the add-theme-preview branch May 10, 2016 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try on themes
3 participants