- Status changed to Needs work
about 1 year ago 12:32pm 27 December 2023 - π§πͺBelgium swentel
Moving to feature, I'm not going to kill the onclick attribute because that's a BC break, will add a new option underneath where you can toggle to either use onlick or js.
Needs work because it doesn't apply anymore either.
- πΊπΈUnited States AaronBauman Philadelphia
Neither js nor onclick are accessible, so this presents a significant access barrier.
Why can't an anchor tag ie. <a> be an option?
- πΊπΈUnited States sonfd Portland, ME
I have been referencing the Block link cards docs from W3 design system for this sort of thing. The approach is described in the Block Links: The Search for a Perfect Solution CSS tricks article.
But I'm not exactly sure how we would control that approach (Method 4 in the article) through the UI. Maybe we could assume the first link is the main link? (That's what I have been doing :shrug:)