Skip to content
#

design-system

Here are 1,036 public repositories matching this topic...

grommet
polaris-react
theme-ui
lhguerra
lhguerra commented Jul 13, 2021

I'm currently implementing a news list with an image in each item, and these images have 4:3 ratio in mobile devices and 16:9 ratio in desktop devices. Would it be possible or even make sense for the Aspect and AspectImage components to handle this kind of thing? I imagine an API like this:

<AspectImage {...imageProps} ratio={[4/3, 16/9]} />

Where each item in this array of ratios woul

react
emplums
emplums commented Dec 2, 2020

(moved over from https://github.com/github/design-systems/issues/860, thanks @smockle 👋 !)

Problem

Occasionally it’s useful to add an interactive element with the semantics of button (correctly represented in the AT)—but without its visual styles.

Solution

Other teams at GitHub spread the following object in sx props to destyle Buttons:

// Removes most of 'button'’s visual appearanc

Improve this page

Add a description, image, and links to the design-system topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the design-system topic, visit your repo's landing page and select "manage topics."

Learn more