File tree Expand file tree Collapse file tree 5 files changed +47
-3
lines changed
Expand file tree Collapse file tree 5 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @skip-go/widget ' : patch
3+ ---
4+
5+ Add cssReset to widget
Original file line number Diff line number Diff line change 99}
1010
1111input {
12- background-color : black;
12+ background : black;
13+ }
14+
15+ div ,
16+ p ,
17+ span {
18+ color : gray;
19+ border : 2px solid gray;
20+ background : gray;
1321}
Original file line number Diff line number Diff line change 1+ /* Reset relevant styles within Shadow DOM */
2+ * {
3+ font-family : unset;
4+ font-style : unset;
5+ font-weight : unset;
6+ text-align : revert;
7+ text-decoration : unset;
8+ text-indent : unset;
9+ text-transform : unset;
10+ line-height : unset;
11+ letter-spacing : unset;
12+ white-space : unset;
13+ box-sizing : border-box;
14+ margin : unset;
15+ padding : unset;
16+ visibility : unset;
17+ float : unset;
18+ clear : unset;
19+ background-color : unset;
20+ word-spacing : unset;
21+ }
22+
23+ div ,
24+ p ,
25+ span {
26+ color : black;
27+ }
Original file line number Diff line number Diff line change @@ -294,7 +294,10 @@ export const SwapWidgetUI = ({
294294 }
295295 } }
296296 >
297- < div key = { accountStateKey } className = "animate-slide-up-and-fade" >
297+ < div
298+ key = { accountStateKey }
299+ className = "animate-slide-up-and-fade text-white"
300+ >
298301 { ! srcAccount ?. isWalletConnected && 'Connect Wallet' }
299302 </ div >
300303 </ button >
Original file line number Diff line number Diff line change 77import { SwapWidgetUI } from './Widget' ;
88import shadowDomStyles from '../styles/shadowDomStyles.css' ;
99import toastStyles from '../styles/toastStyles.css' ;
10+ import cssReset from '../styles/cssReset.css' ;
1011import { Scope } from 'react-shadow-scope' ;
1112import { useInjectFontsToDocumentHead } from '../hooks/use-inject-fonts-to-document-head' ;
1213
@@ -42,7 +43,7 @@ export const SwapWidget: React.FC<SwapWidgetProps> = ({
4243
4344 return (
4445 < Scope
45- stylesheets = { [ toastStyles , shadowDomStyles ] }
46+ stylesheets = { [ cssReset , toastStyles , shadowDomStyles ] }
4647 config = { { dsd : 'emulated' } }
4748 >
4849 < SwapWidgetProvider { ...swapWidgetProviderProps } >
You can’t perform that action at this time.
0 commit comments