-
Notifications
You must be signed in to change notification settings - Fork 746
Open
Labels
css-ui-4Current WorkCurrent Work
Description
It's critically important that touch/click target sizes be adequate for an interface to be usable. But sometimes the visual needs of an interface element are out of step with its ideal pointer target size.
Some of the ways developers deal with this today:
- Nesting additional elements so the interactive area can be defined separately from the visual appearance. This complicates the markup.
- Using transparent borders and
background-clip
. This forces use ofbox-shadow
in place ofborder
and may also preventborder-radius
from working in the expected way. - Absolute positioning pseudo elements larger than the parent element. This conflicts with
overflow: hidden
.
It would be cool if we could somehow extend the pointer box of an element without impacting its layout or visual appearance?
.button {
pointer-box-offset: 0.5rem;
}
(I was encouraged to submit this issue after writing about the idea.)
JumanaFM, artemvasilkin, simboonlong, Crissov, benface and 9 morederekshirk, brunostasse, Paul-Hebert, dpierangeli, teleject and 13 more
Metadata
Metadata
Assignees
Labels
css-ui-4Current WorkCurrent Work