-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Make edit and issue buttons less glaring #20370
base: production
Are you sure you want to change the base?
Conversation
Preview URL: https://2097c9db.preview.developers.cloudflare.com |
Howdy and thanks for contributing to our repo. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally. |
@@ -7,6 +7,8 @@ import FeedbackPrompt from "../FeedbackPrompt.tsx"; | |||
--- | |||
|
|||
<Default {...Astro.props} /> | |||
</br> |
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.
🚫 [eslint] reported by reviewdog 🐶
Parsing error: Unknown token at 275, expected: "<br", actual: "
\n<Fee"
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.
</br> | |
<br /> |
@KianNH can you take a look / approve? i think orange is very distracting |
@@ -7,6 +7,8 @@ import FeedbackPrompt from "../FeedbackPrompt.tsx"; | |||
--- | |||
|
|||
<Default {...Astro.props} /> | |||
</br> |
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.
</br> | |
<br /> |
@@ -15,15 +17,15 @@ import FeedbackPrompt from "../FeedbackPrompt.tsx"; | |||
{Astro.props.editUrl && ( | |||
<a | |||
href={Astro.props.editUrl} | |||
class="h-8 cursor-pointer content-center rounded bg-cl1-brand-orange px-4 text-sm font-medium text-cl1-black" | |||
class="inline-flex h-8 items-center justify-center gap-2 rounded border border-gray-300 bg-white px-3 text-s font-small text-black hover:bg-gray-50" |
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.
text-s
and font-small
aren't valid Tailwind classes but if you're happy with how the buttons currently look on the preview than I'd just remove them as they won't be doing anything.
On dark mode, the buttons currently look like this:

You could remove bg-white
and hover:bg-gray-50
to just use the normal background colour of the sidebar, or add classes with different colours with the dark:
selector.
Summary
Making new edit / issue buttons a little less glaring since righ tnow they're the primary thing that jumps out on the page
Screenshots (optional)
Current:

Proposed:
