Skip to content
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

Open
wants to merge 1 commit into
base: production
Choose a base branch
from
Open

Conversation

rita3ko
Copy link
Collaborator

@rita3ko rita3ko commented Feb 27, 2025

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:
Screenshot 2025-02-27 at 10 35 51 AM

Proposed:
Screenshot 2025-02-27 at 10 35 47 AM

Copy link
Contributor

Copy link
Contributor

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>
Copy link
Contributor

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"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</br>
<br />

@rita3ko
Copy link
Collaborator Author

rita3ko commented Feb 27, 2025

@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>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</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"
Copy link
Contributor

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:

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants