Skip to content
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

Adding drop shadow offset-y and blur-radius menu option #143

Merged
merged 3 commits into from
Dec 11, 2017

Conversation

rafaelcamaram
Copy link
Contributor

@rafaelcamaram rafaelcamaram commented Nov 20, 2017

Adding the option that allows the user to change the box-shadow offset-y and blur-radius properties.

@rafaelcamaram rafaelcamaram mentioned this pull request Nov 20, 2017
Copy link

@igorlima igorlima left a comment

Choose a reason for hiding this comment

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

Straight and forward - good job man 👏

@jakedex jakedex self-requested a review December 1, 2017 05:47
Copy link
Collaborator

@jakedex jakedex left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @rafaelcamaram. Outside of my requested changes, it looks great!

@@ -107,7 +109,9 @@ class Carbon extends React.Component {
<div id="container">
{config.windowControls ? <WindowControls theme={config.windowTheme} /> : null}
<CodeMirror
className={`CodeMirror__container window-theme__${config.windowTheme}`}
className={`CodeMirror__container CodeMirror__shadow window-theme__${
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need to add a new class (CodeMirror__shadow) here?

}

#container :global(.CodeMirror__shadow) {
${config.dropShadow
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's use template literals here

@@ -44,6 +44,16 @@ class Settings extends React.Component {
enabled={this.props.enabled.dropShadow}
onChange={this.props.onChange.bind(null, 'dropShadow')}
/>
<Slider
label="Drop shadow offset-y"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should change these to 'Drop shadow (offset-y)' to be consistent with Padding (verticle), etc.

@mfix22
Copy link
Contributor

mfix22 commented Dec 8, 2017

Hey @rafaelcamaram, could you address the concerns @jakedex mentioned?

@rafaelcamaram
Copy link
Contributor Author

@jakedex @mfix22 Sure! I'll fix it this week and commit it as soon as possible :)

@rafaelcamaram
Copy link
Contributor Author

rafaelcamaram commented Dec 10, 2017

@jakedex @mfix22 I just did the changes that you mentioned. If you think that something could be improved, please let me know :)

onChange={this.props.onChange.bind(null, 'dropShadowOffsetY')}
/>
<Slider
label="Drop shadow blur-radius"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please make this one "Drop shadow (blur-radius)"

@mfix22
Copy link
Contributor

mfix22 commented Dec 10, 2017

Thanks @rafaelcamaram, just one more thing!

@rafaelcamaram
Copy link
Contributor Author

@mfix22 Done! :)

@mfix22 mfix22 merged commit a4cfaab into carbon-app:master Dec 11, 2017
@mfix22
Copy link
Contributor

mfix22 commented Dec 11, 2017

Thanks so much for the help @rafaelcamaram. Just released with your changes https://github.com/dawnlabs/carbon/releases/tag/1.0.4

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.

None yet

4 participants