设计 · 最新文章

今日新增 38 篇 · 共 831 篇 · 来自 20 个博客

Sara Soueidan··Sara Soueidan

Optimizing keyboard navigation using tabindex and ARIA

AI 摘要The article explains that article listings on publications often contain multiple links (thumbnail, title, and 'Read More') pointing to the same full article page, forcing keyboard users to redundantly tab through the same link two or three times and making navigation cumbersome. The author shows how applying tabindex="-1" and aria-hidden="true" to decorative thumbnails and redundant 'Read More' links reduces tab stops and makes the keyboard experience significantly faster and more efficient. However, the author cautions that this technique isn't universal—in cases like Lea Verou's site where post excerpts contain many links, a 'Read More' link serves as a valuable shortcut and should remain tabbable.

Ethan Marcotte··Ethan Marcotte

Power.

AI 摘要The article explores different forms of power, highlighting worker activism such as New York Times employees protesting the publication of a senator's op-ed advocating military violence, and Facebook employees staging a virtual walkout over the company's inaction on the president's violent posts. It also criticizes tech companies like Google, Amazon, and Shopify for their complicity in racism, surveillance, and violent policing. The author urges readers to organize with coworkers to challenge unjust practices at their workplaces, emphasizing that while individuals have little power alone, collective action can achieve meaningful change.

Ethan Marcotte··Ethan Marcotte

A programming note.

AI 摘要The author announces they are temporarily pausing their email newsletter and social media broadcasts of new posts due to current events in their country, though they will continue writing on their blog and RSS subscribers will still be notified. They also share a curated list of anti-racist educational resources and organizations supporting Black liberation and racial justice that readers can learn from or support.

Sara Soueidan··Sara Soueidan

Global and Component Style Settings with CSS Variables

AI 摘要The article describes two ways the author uses CSS Variables to organize and maintain styles: a global _settings.scss stylesheet containing project-wide design tokens derived from the team's style guide, and component-scoped variables that act as a customizable 'settings object' for each pattern in their personal 'Skeleton' pattern library, enabling faster prototyping and theming across projects. The author notes that limited Internet Explorer support currently restricts this approach to personal projects, though a polyfill allows global variables, and they plan to eventually combine the technique with Web Components and container queries for more portable patterns.

Ethan Marcotte··Ethan Marcotte

Responsive design: seams & edges.

AI 摘要The author reflects on a decade of responsive design, arguing that the industry's reliance on fixed device categories like 'mobile,' 'tablet,' and 'desktop' with predefined pixel breakpoints creates an illusion of control and neglects the web's inherent fluidity. He instead advocates focusing on 'seams'—the points where a design breaks as screens change shape or users interact in unexpected ways—and treating design system patterns as small responsive designs with their own breakpoints. Drawing on Mark Boulton's 'content-out design,' he urges designers to abandon the outdated idea of the page and embrace the web's edgeless, fluid nature.

Ethan Marcotte··Ethan Marcotte

Responsive web design turns ten.

AI 摘要The author celebrates the tenth anniversary of his landmark 'Responsive Web Design' article, recounting how the idea originated in his 2010 talk 'A Dao of Flexibility' at An Event Apart Seattle, inspired by fluid grids, flexible images, media queries, and the concept of responsive architecture. He credits the people who helped the idea succeed, particularly Mandy Brown, who encouraged him to turn the talk into an article for A List Apart, as well as his partner Elizabeth and influences like John Allsopp's 'A Dao of Web Design.' He expresses gratitude to readers and designers who embraced the concept and teases upcoming blog posts reflecting on what has changed over the decade.

Ethan Marcotte··Ethan Marcotte

An interview for the Responsive Web Design newsletter.

AI 摘要This article is an interview with web designer Ethan Marcotte conducted for Justin Avery's Responsive Web Design newsletter. Marcotte discusses his work helping clients implement responsive design and refine their design systems, criticizes limiting device shorthand like 'mobile' and 'desktop' for concealing assumptions, and names web accessibility and the lack of container queries as top ongoing challenges. He also argues that Google AMP constitutes an abuse of Google's dominant market position and expresses hope for growing tech worker organization and unionization.

Ethan Marcotte··Ethan Marcotte

Gardened.

AI 摘要The author discusses two recent pieces: Steve Workman's account of optimizing excessively bloated code from a software library, and Tim Kadlec's research showing that websites built with Angular, React, and Vue deliver far more JavaScript than ideal, costing users significant time and money. He argues these stories reveal the same systemic problem: popular frameworks ship with bad defaults, and producing quality work depends on teams voluntarily adopting best practices, which doesn't scale. He concludes that the tech industry's self-regulation amounts to a failure of governance and calls for formal standards, akin to building codes in other industries, particularly since the web provides life-saving information and services during a global health crisis.

Ethan Marcotte··Ethan Marcotte

Constrained CSS grids without max-width.

AI 摘要The author shares a CSS Grid technique for capping a layout's width without max-width, by adding a flexible 'constraint column' defined with calc() — e.g., calc(100vw - 72rem) — which absorbs extra viewport space and prevents the main columns from growing beyond the target width. For centered layouts, the same approach can be mirrored on both sides using 50vw minus half the max width, with adjustments needed for gutters or grid-gap. This allows grid items to extend into the constraint column for full-bleed elements, treating the empty space around a design as a layout tool rather than defaulting to max-width.

Ethan Marcotte··Ethan Marcotte

Writing my accessibility statement.

AI 摘要The author recounts realizing his website lacked an accessibility statement and spending a morning writing and publishing one, drawing inspiration from examples like Eric Bailey's, Vox Media's, and GOV.UK's. He explains that a good accessibility statement serves readers by describing the site's accessibility features, honestly acknowledging known issues, being maintained as a living document, and inviting feedback the author commits to addressing quickly.

Ethan Marcotte··Ethan Marcotte

Let a website be a worry stone.

AI 摘要The author recounts redesigning his personal website, describing the ongoing tinkering—adding dark mode, accessibility improvements, and performance enhancements—as a calming, centering activity akin to rubbing a worry stone. Written during a period of anxiety and isolation when the world feels unstable, the essay frames the website as a small, comforting space that is his own. Though it doubles as his professional home on the web, he finds the repetitive, never-quite-finished work grounding and expresses gratitude for having such a 'worry stone' nearby.

Sara Soueidan··Sara Soueidan

What a Year of Learning and Teaching Accessibility Taught Me

AI 摘要The author reflects on lessons learned from years of studying and teaching web accessibility, emphasizing that semantic HTML is the foundation of an accessible Web because it conveys structure, meaning, and interoperability across devices and assistive technologies. ARIA should be used sparingly and only as a supplement when native HTML elements cannot provide the needed semantics, while JavaScript is essential for making custom interactive components truly accessible. Ultimately, progressive enhancement—starting with a resilient semantic HTML base and layering CSS and JavaScript on top—is the most inclusive strategy for building for the Web.

Sara Soueidan··Sara Soueidan

Case Study: Implementing Accessible Data Charts for the Khan Academy 2018 Annual Report

AI 摘要The author describes their work making the data charts in the Khan Academy 2018 Annual Report accessible to screen reader users, noting that SVG visualizations lack the native semantics needed to convey chart content. They chose to embed the SVGs via the element with concise text fallbacks, using role="img", aria-label, and aria-describedby to expose the descriptions to screen readers in the right order. This approach was preferred over ARIA table polyfills because of inconsistent browser and screen reader support and the complexity of the charts involved.

Sara Soueidan··Sara Soueidan

Accessible Icon Buttons

AI 摘要The article explains that icon-only buttons are common in user interfaces but often lack proper accessibility for users of assistive technologies, and it outlines several techniques for giving them accessible names. These techniques include embedding visually hidden text inside the button (hidden via CSS), hiding text with the HTML hidden attribute and referencing it with aria-labelledby, applying aria-label directly to the button, or labeling the SVG icon itself with aria-label. It also covers best practices such as hiding decorative icons with aria-hidden, preventing unwanted focus in Internet Explorer with focusable="false", and using Chrome DevTools' Accessibility panel to verify a button's accessible name.

Sara Soueidan··Sara Soueidan

The SVG Filters Series

AI 摘要This article presents an overview of a series on SVG filters, explaining what they are and how to use them to create custom visual effects. The series covers individual filter primitives such as feMorphology for text outlines and paint-like effects, feComponentTransfer for poster and duotone image effects, and feDisplacementMap for conforming text to surface textures. The final article provides useful resources and experiments to help readers start creating their own SVG filter effects.

Sara Soueidan··Sara Soueidan

The Refactoring UI Book

AI 摘要The author, a developer with no formal design education, praises the Refactoring UI book by Steve and Adam as exactly what they had hoped for—packed with concise, straight-to-the-point design tips accompanied by helpful visual examples. They say the book helped them understand design decisions they now recognize in other designers' work, and they highly recommend it to developers looking to improve their design skills. The book is available as a full bundle with extras like color swatches, UI components, icons, and videos, or as an essentials package with just the book and videos.

Sara Soueidan··Sara Soueidan

Nested Links Without Nesting Links

AI 摘要The article explores the challenge of creating nested links in HTML, which is invalid per the spec since an element cannot contain other interactive elements like links. After reviewing Roman Komarov's element hack and Harry Roberts' CSS-only layered links technique, the author describes her own implementation for Smashing Magazine that expands the post's title link across the entire article using a ::before pseudo-element. This approach achieves the desired behavior while preserving a natural keyboard tab order, though the compromise is that excerpt text becomes unselectable.

Sara Soueidan··Sara Soueidan

How do you mark up an accordion?

AI 摘要Based on a Twitter poll, this article explores different semantic HTML approaches for marking up an FAQ section without JavaScript, comparing headings paired with divs, unordered lists, definition lists, and the native and elements. The author discusses the accessibility advantages and drawbacks of each approach for assistive technology users and how easily each can be enhanced into an interactive accordion with JavaScript and ARIA. The key takeaway is that semantic HTML should be the foundation of accessible content, with interactive behavior added progressively.

Sara Soueidan··Sara Soueidan

Just write.

AI 摘要The author explains how her habit of writing long, technical deep dives made her overly critical of her own work, causing her to abandon drafts and stop publishing for months. By silencing her inner critic and publishing shorter, rougher case studies, she rediscovered the joy of writing — even finding that her concise articles were better received, as in the case of her well-praised HSL article. She encourages everyone to just write, publish, and share for themselves, regardless of whether anyone reads or judges their work.

Sara Soueidan··Sara Soueidan

On Switching from HEX & RGB to HSL

AI 摘要The author explains why they converted their site's colors from HEX and RGB formats to HSL in CSS: HSL is far more intuitive for tweaking colors, creating color harmonies (such as complementary and triadic schemes), and building shades and tints. The article describes how hue, saturation, and lightness work, and shows how HSL combined with CSS Custom Properties makes creating and maintaining multiple site-wide color themes easy and maintainable. The actual conversion was done quickly with a Sublime Text plugin, and the author now feels full control over color management.