Skip to content

Commit

Permalink
Fix: widget styling affects entire page (#375)
Browse files Browse the repository at this point in the history
* remove styles for headings

* apply heading styles only for shadow dom
  • Loading branch information
Fishbakh-N authored Dec 6, 2023
1 parent 9928400 commit 91a4c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,5 @@ export const overlayCss = cxs({
},
'& *:after': {
boxSizing: 'inherit'
},
'h1,h2,h3,h4,h5,h6': {fontWeight: 700},

h1: {
...textSize.xl
},

h2: {
...textSize.l
},

'h3,h4,h5,h6': {
...textSize.m
}
});
4 changes: 4 additions & 0 deletions packages/donate-button-v4/src/resetCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const resetcss = `
color: unset;
background: unset;
}
h1, h2, h3, h4, h4, h6 {
font-weight: 700
}
`;

export default resetcss;

1 comment on commit 91a4c23

@vercel
Copy link

@vercel vercel bot commented on 91a4c23 Dec 6, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.