You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/tailwind/src/__snapshots__/tailwind.spec.tsx.snap
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ exports[`Custom theme config > should be able to use custom text alignment 1`] =
16
16
17
17
exports[`Responsive styles > should add css to <head/> and keep responsive class names 1`] =`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmllang="en"><head><!--$--><style>@media(min-width:640px){.sm_bg-red-300{background-color:rgb(252,165,165) !important}}@media(min-width:768px){.md_bg-red-400{background-color:rgb(248,113,113) !important}}@media(min-width:1024px){.lg_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><divclass="sm_bg-red-300 md_bg-red-400 lg_bg-red-500"style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
18
18
19
+
exports[`Responsive styles > should not have duplicate media queries 1`] =`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media(min-width:768px){.md_px-64px{padding-left:64px!important;padding-right:64px!important}}</style></head><bodyclass="md_px-64px"style="background-color:rgb(255,255,255);margin-top:auto;margin-bottom:auto;margin-left:auto;margin-right:auto;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji""><divclass="md_px-64px"></div><!--/$--></body>"`;
20
+
19
21
exports[`Responsive styles > should persist existing <head/> elements 1`] =`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmllang="en"><head><!--$--><style></style><link/><style>@media(min-width:640px){.sm_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><divclass="sm_bg-red-500"style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
20
22
21
23
exports[`Responsive styles > should throw an error when used without a <head/> 1`] =`
@@ -46,7 +48,7 @@ exports[`Responsive styles > should work with arbitrarily deep (in the React tre
46
48
47
49
exports[`Responsive styles > should work with arbitrarily deep (in the React tree) <head> elements 2`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmllang="en"><head><!--$--><style>@media(min-width:640px){.sm_bg-red-300{background-color:rgb(252,165,165) !important}}@media(min-width:768px){.md_bg-red-400{background-color:rgb(248,113,113) !important}}@media(min-width:1024px){.lg_bg-red-500{background-color:rgb(239,68,68) !important}}</style></head><body><divclass="sm_bg-red-300 md_bg-red-400 lg_bg-red-500"style="background-color:rgb(254,202,202)"></div><!--/$--></body></html>"`;
48
50
49
-
exports[`Responsive styles > should work with relatively complex media query utilities 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media not all and(min-width:640px){.max-sm_text-red-600{color:rgb(220,38,38) !important}}</style></head><pclass="max-sm_text-red-600"style="color:rgb(29,78,216)">I am some text<!-- --></p><!--/$-->"`;
51
+
exports[`Responsive styles > should work with relatively complex media query utilities 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media not all and(min-width:640px){.max-sm_text-red-600{color:rgb(220,38,38) !important}}</style></head><pclass="max-sm_text-red-600"style="color:rgb(29,78,216)">I am some text</p><!--/$-->"`;
@@ -60,13 +62,13 @@ exports[`Tailwind component > should not override inline styles with Tailwind st
60
62
61
63
exports[`Tailwind component > should preserve mso styles 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmldir="ltr"lang="en"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media(min-width:640px){.sm_bg-red-50{background-color:rgb(254,242,242) !important}.sm_text-sm{font-size:0.875rem!important;line-height:1.25rem!important}}@media(min-width:768px){.md_text-lg{font-size:1.125rem!important;line-height:1.75rem!important}}</style></head><span><!--[if mso]><istyle="letter-spacing: 10px;mso-font-width:-100%;"hidden> </i><![endif]--></span><divclass="sm_bg-red-50 sm_text-sm md_text-lg custom-class"style="background-color:rgb(255,255,255)"></div><!--/$--></html>"`;
62
64
63
-
exports[`Tailwind component > should recognize custom responsive screen 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmldir="ltr"lang="en"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media(min-width:1280px){.xl_bg-green-500{background-color:rgb(34,197,94) !important}}@media(min-width:1536px){.twoxl_bg-blue-500{background-color:rgb(59,130,246) !important}}</style></head><divclass="xl_bg-green-500"style="background-color:rgb(254,226,226)">Test<!-- --></div><divclass="twoxl_bg-blue-500">Test<!-- --></div><!--/$--></html>"`;
65
+
exports[`Tailwind component > should recognize custom responsive screen 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmldir="ltr"lang="en"><head><metacontent="text/html; charset=UTF-8"http-equiv="Content-Type"/><metaname="x-apple-disable-message-reformatting"/><!--$--><style>@media(min-width:1280px){.xl_bg-green-500{background-color:rgb(34,197,94) !important}}@media(min-width:1536px){.twoxl_bg-blue-500{background-color:rgb(59,130,246) !important}}</style></head><divclass="xl_bg-green-500"style="background-color:rgb(254,226,226)">Test</div><divclass="twoxl_bg-blue-500">Test</div><!--/$--></html>"`;
64
66
65
67
exports[`Tailwind component > should work properly with 'no-underline' 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmldir="ltr"lang="en"><head></head><!--$--><body><pstyle="color:rgb(0,0,0);font-size:14px;line-height:24px">or copy and paste this URL into your browser:<!-- --> <aclass="other"href="https://react.email"style="color:rgb(37,99,235);text-decoration-line:none"target="_blank">https://react.email</a></p><pstyle="color:rgb(0,0,0);font-size:14px;line-height:24px">or copy and paste this URL into your browser:<!-- --> <ahref="https://react.email"style="color:rgb(37,99,235);text-decoration-line:none"target="_blank">https://react.email</a></p><!--/$--></body></html>"`;
66
68
67
69
exports[`Tailwind component > should work with Heading component 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$-->Hello<h1>My testing heading</h1>friends<!--/$-->"`;
68
70
69
-
exports[`Tailwind component > should work with calc() with + sign 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><!--$--><style>@media(min-width:1024px){.lg_max-h-calc50pxplus5rem{max-height:calc(50px+ 5rem) !important}}</style></head><divclass="lg_max-h-calc50pxplus5rem"style="max-height:calc(50px + 3rem);background-color:rgb(254,226,226)"><divstyle="height:200px">something tall<!-- --></div></div><!--/$-->"`;
71
+
exports[`Tailwind component > should work with calc() with + sign 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head><!--$--><style>@media(min-width:1024px){.lg_max-h-calc50pxplus5rem{max-height:calc(50px+ 5rem) !important}}</style></head><divclass="lg_max-h-calc50pxplus5rem"style="max-height:calc(50px + 3rem);background-color:rgb(254,226,226)"><divstyle="height:200px">something tall</div></div><!--/$-->"`;
70
72
71
73
exports[`Tailwind component > should work with class manipulation done on components 1`] = `"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--$--><divstyle="color:rgb(96,165,250);padding:4px;background-color:rgb(239,68,68)"></div><!--/$-->"`;
0 commit comments