-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signup: Replace usage of ThemeThumbnail for ThemesList component on Theme Selection Signup Step #1079
Signup: Replace usage of ThemeThumbnail for ThemesList component on Theme Selection Signup Step #1079
Conversation
padding: 12px 0; | ||
text-align: center; | ||
.themes-list .theme__active-focus { | ||
opacity: 0.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things. Firstly we shouldn't use opacity to hide stuff, secondly, we don't need the .0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, will proceed to update the Theme
component to show the preview depending on a boolean .prop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third, any CSS change needs to be namespaced properly for the context it's being used on: this change is being applied everywhere! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhh, sorry for that! This css rule won't stay there as I'll update the Theme
component to do what this line was supposed to do. Thanks
cc @folletto - this changes the theme thumbnails from this: Does that look ok to you? |
@@ -30,28 +34,55 @@ module.exports = React.createClass( { | |||
}; | |||
}, | |||
|
|||
renderThemes: function() { | |||
handleScreenshotClick: function( theme ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this code is from the old theme thumbnail component? Can we remove that at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't fully get what you meant. handlScreenshotClick
is passed as prop to ThemesList
and forwarded to Theme
in order to instruct what to do when a screenshot is clicked. In this case this method submits the step.
Looking good! |
Heya! Yes, style wise it's correct, however there are two issues:
|
Awesome @folletto, thanks! @scruffian I'll make the |
|
Design wise 👍 |
070988e
to
2b6f645
Compare
LGTM 👍 |
As a followup it would be good to use the same component in the DSS flow... |
ThemesList is a reusable component appropriate for the function that ThemeSelection Step is providing. ThemeThumbnail will no longer be necessary. The theme selection step still handles a headStart flow providing {theme: 'pub/twentyfifteen'} as a default dependency.
…s.actionLabel if theme is not active. The default label text if .props.active is falsey is the translated 'Preview' string. For a Theme instance having .props.active with a truthy value, the label text is the translated string 'Customize'.
The scss file for theme-selection is no longer needed and is also removed by this commit.
2b6f645
to
6c9f84c
Compare
…e-list-component Signup: Replace usage of ThemeThumbnail for ThemesList component on Theme Selection Signup Step
ThemesList is a reusable component appropriate for the function that ThemeSelection Step is providing.
ThemeThumbnail will no longer be necessary. The theme selection step still handles a headStart flow providing {theme: 'pub/twentyfifteen'} as a default dependency.
See #256 and #674 .
cc @scruffian
Testing instructions
Regular theme selection
Headstart flow
Skip
button. (This way, themetwentyfifteen
will be selected by default.Twenty Fifteen
./design theme selection for existing sites
ThemesList
and thus, the updatedTheme
component. There shouldn't be any differences with its current behaviour and appearance as the defaultTheme
behaviour is used here.