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
Is your feature request related to a problem? Please describe.
When I inspect the elements in the browser, only the "wrapper" React component name is present in the class attributes. Theme UI's base component names such as Heading or Image do not show up.
Describe the solution you'd like
Base components such as Heading or Image should show its name in the rendered element's class attribute for easier debugging.
Additional context
Source code
/** @jsx jsx */importReact,{FunctionComponent}from"react";import{jsx,Flex,Heading,Text,Image}from"theme-ui";constUsersImporter: FunctionComponent=()=>{return(<Flexas="article"data-testid="info-clip"sx={{flexDirection: "column",px: "35%",py: "6em",bg: "lightgray"}}><Heading>My users</Heading><Headingmb={2}sx={{textAlign: "center"}}>
IMPORT YOUR USER
</Heading><Imagealt="import information"src="https://picsum.photos/300/100"/><Textas="p">Lorem ipsum</Text></Flex>);};
Rendered HTML in the browser
<articledata-testid="info-clip" class="css-nxzrfe-UsersImporter"><h2class="css-1r1c8td">My users</h2><h2class="css-1cytxyy-UsersImporter">IMPORT YOUR USER</h2><imgalt="import information"
src="https://picsum.photos/300/100"
class="css-9taffg"
/><pclass="css-vurnku">Lorem ipsum</p></article>
Is your feature request related to a problem? Please describe.
When I inspect the elements in the browser, only the "wrapper" React component name is present in the
class
attributes. Theme UI's base component names such as Heading or Image do not show up.Describe the solution you'd like
Base components such as Heading or Image should show its name in the rendered element's
class
attribute for easier debugging.Additional context
Source code
Rendered HTML in the browser
Expected HTML
The text was updated successfully, but these errors were encountered: