-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <Steps>
component
#1564
Add <Steps>
component
#1564
Conversation
🦋 Changeset detectedLatest commit: fd16093 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
size-limit report 📦
|
Woo! These are looking so good! I love the step numbers and the lines. The headings look really good, too! Some gut reaction feedback on the visuals (haven't looked at the authoring experience yet):
|
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
I did go back and forth a bit, but the more intense hairline felt kind of noisy and distracting, especially in medium viewports where it kind of competes with the border of the sidebar in light mode: I’ll take another look though. Maybe this is a case where we need to tweak things in dark mode vs light mode.
That’s just an example, not how things automatically behave — I threw a
Do you mean like the example in the docs for the component? |
Ah, yes I did! Sorry, I was only looking on the test page! That looks great! |
Wow! This looks so cool. We need it for our Astro docs tutorial. |
Tested the new component in one project by replacing my existing Also played a bit with VoiceOver and as expected considering this is beautifully built around lists, it works perfectly. Some more general questions:
|
Yes, started investigating last night but didn’t complete it yet. AFAICT it seems to be a false positive where it somehow thinks a background colour from the
Yes! Locally I tried it already in the numbered steps on the “Customizing Starlight” guide and worked quite well. I’ll try your suggestion too. My thought was that it might be best to do in a follow-up PR that could also apply the formatting change to other languages in one pass with |
Wrapped up some investigation into the pa11y failures: In some cases, when axe can’t determine the contrast ratio for certain elements, for example if the element has a background image or contains a pseudo-element, it will report the issue as “needs review”. The problem is that pa11y is currently reporting these review items as errors (see pa11y/pa11y#633 (comment)) We have this exact issue: if I remove a background colour from the This is tracked as an issue in pa11y/pa11y#623 and there’s a draft PR in pa11y/pa11y#685 but no fix yet. (Also would be fixed in pa11y@7, but pa11y-ci is still on pa11y@6, so lots of stacks of maintenance needed there — shame that seems to be quite slow, wonder if there’s anything we can do to help?) Given this, I think we’re out of options apart from disabling colour contrast checks in |
This makes sense and I think we should indeed be fine for the time being. 👍 I also want at some point to take the time to test kayle which I found out when the PR to migrate the CI part of pa11y-ci into pa11y was cancelled (they also seem to work on a Rust/WASM runner with the A11yWatch org so maybe good to keep an eye on that too). |
Simplify styles by applying `sl-steps` class directly to `<ol>` rather than relying on Astro scoping and a wrapper `<div>`
Interesting! Hadn’t seen that — seems early still with one developer although they are building a business of it looks like, so maybe there’ll be more investment in the tools if they are successful. OK, one last update from me this morning: I decided to remove the wrapper @sarah11918 Re: your concern about the dark theme guide line — I did end up bumping up the contrast a touch on that, so hopefully should address that! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 🚢 🚢 🚢 🚢 🚢
* main: [ci] format [ci] release (withastro#1574) Add `<Steps>` component (withastro#1564) Add `<FileTree>` component (withastro#1308) Add icon support to the `<TabItem>` component (withastro#1568) [ci] format docs: add Flojoy to showcase (withastro#1571) i18n(es): update `components` (withastro#1547) i18n(pt-PT): add "manual-setup" page (withastro#1570) i18n(zh-cn): Update pages.mdx (withastro#1565) Updates internal github actions to the latest versions (withastro#1569) [ci] format i18n(it): Update pages.mdx & plugins.mdx (withastro#1567) [ci] format i18n(pt-PT): add "environmental-impact" page (withastro#1561) [ci] format i18n(zh-cn): Update plugins.mdx (withastro#1566)
Description
<Steps>
component for styling more complex guided tasks.<FileTree>
component #1308 has merged)