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

Fix Widget/MarkdownPreview/EditPencil spacing #20

Merged
merged 3 commits into from
Jun 26, 2019

Conversation

chadoh
Copy link
Contributor

@chadoh chadoh commented Jun 6, 2019

Fixes #18

  • Remove top padding from various MarkdownPreview elements, to avoid
    too much padding appearing at top of widget
  • Tighten coupling between EditButton and IconPencil, since the height
    and width of the button need to match the height and width of the svg
    (at least with current styling approach)
  • Remove IconPencil as a general-use import
  • Remove unused pencil.svg file
  • Make EditButton styles more generic, and override them inside the
    Widget component with behavior that's specific to Widget's use of the
    component

Screenshots

edit widget animation


Screen Shot 2019-06-06 at 16 04 07

@chadoh chadoh self-assigned this Jun 6, 2019
@chadoh chadoh force-pushed the padding-and-edit-button-styling branch 4 times, most recently from 3c72361 to 2c1aed8 Compare June 6, 2019 20:26
* Remove top padding from various `MarkdownPreview` elements, to avoid
  too much padding appearing at top of widget
* Tighten coupling between EditButton and IconPencil, since the height
  and width of the button need to match the height and width of the svg
  (at least with current styling approach)
* Remove IconPencil as a general-use import
* Remove unused pencil.svg file
* Make EditButton styles more generic, and override them inside the
  Widget component with behavior that's specific to Widget's use of the
  component
* Make images expand to full width of widget, rather than 95%
@chadoh chadoh force-pushed the padding-and-edit-button-styling branch from 2c1aed8 to 4e55344 Compare June 17, 2019 19:14
@chadoh chadoh removed their assignment Jun 17, 2019
Copy link
Member

@ottodevs ottodevs left a comment

Choose a reason for hiding this comment

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

Code changes look good to me, maybe a final word from designers should be needed?

@ottodevs
Copy link
Member

I took the freedom to push a tiny commit that fixes travis build, so it should be ready to merge now

@chadoh
Copy link
Contributor Author

chadoh commented Jun 26, 2019

Thanks, Otto!

@chadoh chadoh merged commit 8821910 into add-pencil-icon Jun 26, 2019
@chadoh chadoh deleted the padding-and-edit-button-styling branch June 26, 2019 20:51
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.

2 participants