accordproject / web-components

React Components for Accord Project
Apache License 2.0
117 stars 94 forks source link

fix(ui-markdown-editor): Overriding CSS - #327 #336

Closed d-e-v-esh closed 3 years ago

d-e-v-esh commented 3 years ago

Signed-off-by: d-e-v-esh 59534570+d-e-v-esh@users.noreply.github.com

Closes #327

This pull request overrides the default CSS properties that were being added to the headings by the web browsers.

Changes

Screenshots

The problem was encountered while implementing the H6 heading style. The margin is added to the Heading 6 by default by the user agent stylesheet was not in sync with all the other headings.

This is the before and after. Pay attention to the Heading 6 from the before and after.

Before

Ae5j8buBol

After

NEWGFXMA4Z

The margins for the headings are also a lot more proportional:

Before:

chrome_UC1X3DhLm1

After:

chrome_KFgwrq5UaH

Author Checklist

Michael-Grover commented 3 years ago

@d-e-v-esh if there are relevant screenshots, can you add them to the description? thanks

d-e-v-esh commented 3 years ago

@Michael-Grover I have updated the description with a few. 👍

Michael-Grover commented 3 years ago

Thanks @d-e-v-esh, It looks good to me visually, but I can't say whether the code needs any revisions. I'll leave that to the engineers

jeromesimeon commented 3 years ago

Looks great!

Merge merge? 😄