-
Notifications
You must be signed in to change notification settings - Fork 10
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
Use grid layout with grid-areas for card component #21
Comments
Hey @ricominten can you provide an example here just so we are clear on what you are suggesting. Sounds promising. |
Similar to the RUI-Layout we can have 1 defined HTML markup with different visual representations. As the card element will have limited content and elements it should not affect A11Y. To create the below layout the following CSS is required:
|
For an example see here: |
Can we use grid layout with grid-areas to determine the layout for the card component.
Benefits:
Setting elements of the card (title/image/text/etc.) to a grid-area makes the card much more flexible in its use. Designers are now able to change the layout without it breaking the core component. All the developer has to do is re-assign the grid to update the design.
The text was updated successfully, but these errors were encountered: