We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What do you think to having classes such as l:hide & xs:show for showing and hiding elements at different breakpoints?
l:hide
xs:show
const createDisplayStyles = () => Object.keys(grid.breakpoints).reduce( (mediaQueries, breakpoint) => ({ ...mediaQueries, [`@media screen and (min-width: ${grid.breakpoints[breakpoint]}px)`]: { [`body .${breakpoint}\\:show`]: { display: 'block', }, [`.${breakpoint}\\:hide`]: { display: 'none', }, }, }), {} )
The text was updated successfully, but these errors were encountered:
I would have needed these today so take that as a yes.
Sorry, something went wrong.
Display value could in some cases be flex or something else than block though
flex
block
The concerns are the mixing of two very different css methodologies.
Perhaps we may consider adding atomic classes to our roadmap however, that is a discussion for the guild.
i.e. <Button fullWidth={true} /> vs <Button className="w-100" /> <Text align="center" /> vs <Text className="text-center" />
<Button fullWidth={true} />
<Button className="w-100" />
<Text align="center" />
<Text className="text-center" />
No branches or pull requests
What do you think to having classes such as
l:hide
&xs:show
for showing and hiding elements at different breakpoints?The text was updated successfully, but these errors were encountered: