-
Notifications
You must be signed in to change notification settings - Fork 128
Adjust alert/aside design #3634
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
Conversation
\cc @devoncarew |
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.
I'm assuming you'd seen my redux of the initial css - #3628.
More closely match developer's expectations from GitHub alerts
I do prefer the in-line title and first paragraph style, but
Reduce spacing for to better align with upcoming changes to dart.dev's alerts
I think aligning w/ something else in our space is more important. Do you have screenshots of the upcoming design?
Increase contrast of alert text in dark mode
👍
Add a unique icon and color for each type
👍 - I hadn't worked out the css-foo to prefix the icons
Yep, thanks for adding support for these and aligning the styles with dart.dev!
Yeah we've used it for a while and I've gotten used to it, but after canvasing other related documentation sites and tooling, I found the separated title is quite a bit more common. I decided it's likely better to be familiar. Especially in this case where it's a syntax specifically from GitHub's markdown, which users may expect us to more closely align with. After trying it out for a bit, I found it makes it easier to identify the type of alert. It's potentially easier to localize/translate as well, but that's not super relevant for the API docs currently :P
It's a minor change, pretty much just to separate the title and reduce padding: ![]() I'm happy to make changes though (here and on dart.dev)! I don't feel tied to any design or style of these as the important change here is the improved contrast. Whatever we end up with here, I'll try to align with that on dart.dev :) |
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.
I'm happy to make changes though (here and on dart.dev)! I don't feel tied to any design or style of these as the important change here is the improved contrast. Whatever we end up with here, I'll try to align with that on dart.dev :)
I feel like you guys should own the styles, and general alignment between dartdoc and dart.dev. lgtm :)
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.
Love it!
Thanks both of you for the review! Feel free to merge when ready. I don't have access on this repository. |
Makes some adjustments to:
Dark mode:
Light mode: