Stephanie Eckles Profile picture
(she/her) ✍️ https://t.co/bgoyuaulaq, 👩🏼‍🎨 https://t.co/EjKIXqdUXL, SWE @Microsoft, 👩‍🏫 @eggheadio, 1/2 of @wordwrapshow, mom ✨ a11y • CSS • HTML • 11ty • Design Systems
May 15, 2022 9 tweets 4 min read
Let me unlock your CSS brain with a few of my lightbulb moments around custom properties and numeric values.

Consider this angled section which has become a common element of today's web designs.

Before continuing - think about how you might create it in a scalable way. A light purple element centered horizontally on a dark purpl There are several ways to create the angled shape, but we're going to use `clip-path` along with the well-supported `polygon()` basic shape function.

`clip-path` behaves like `overflow: hidden` for parts of the element beyond the path.

✅ Support: caniuse.com/mdn-css_types_…
Mar 9, 2021 7 tweets 2 min read
🟢 An Aside about HTML <aside>

When HTML5 was the new kid in town, multi-sidebar blogs were also very popular. And the <aside> element seemed like the right choice for sidebars - but is it?

Let's learn a bit more about <aside>! In terms of assistive technology, an <aside> is announced with the implicit role of "complementary".

In terms of semantics, an <aside> cannot live within <main>.

For example - it's not going to be the right choice for ad content that lives within a <main>'s <article>.
Mar 6, 2021 5 tweets 2 min read
👩‍🏫 Quick thread on keyboard #a11y

If an interaction relies on a mouse-initiated action, it needs to be keyboard accessible too.

This means it may need to respond to Space and/or Enter as a trigger (hint: you get that for free with <button>). If it opens something, it may need to close with Escape.

If it's scrollable, it needs to respond to Up/Down arrow keys.

If it's a group of related options (like autocomplete or tabs), it may need to respond to Up/Down or Left/Right arrow keys (search phrase: roving tabindex).
Oct 23, 2020 4 tweets 2 min read
🧵My favorite tools to aid in checking color contrast

Desktop tool:
- Mac-only color picker: Contraste App: contrasteapp.com

Directly in DevTools during development
- available in Chrome, Firefox, Edge, and Safari
- Firefox is best for text over gradients Browser extensions
- WAVE and aXe check the whole page for a11y items including contrast
- For a color picker extension in Chrome/Edge, try: Colour Contrast Checker