-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
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
Unable to show content just for x-small and small form factor #48
Comments
Thanks @KeirBG - Did you try the converse? USing the I was just reading the documentation and find it lacking. Let me experiment and either update the classes or document more clearly. |
I did try the max-hide classes, but I only want to show up to a specific width, not above a specific width. I'll try to put together a sample over the next couple of days. (I have two logins to github by the way :) |
Icon inverse and a:link alignment & bug fix
@KeirBG I see what you're needing, I'll get some utility classes in for you. |
Closing this as it's also been opened as #263 |
I'm trying to display a button if the form factor of the device is x-small or small, but hide if for medium and large. The behaviour I am looking for is essentially hidden-md and hidden-lg from Boostrap.
I've tried using the visibility classes : slds-x-small-show-only and slds-small-show-only, but the problem is these default to hiding the element and only showing it if the form factor matches the media query:
thus whichever style class appears last hides the element if the media query doesn't match.
In version 0.9.2 slds-small-show-only appears after slds-x-small-show-only, so the content is hidden on x-small by the small default of display:none
The text was updated successfully, but these errors were encountered: