-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update dotfiles input help text design #7493
Conversation
@jankeromnes could you take a look at this minor change when you're free? |
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.
Nice! 🎯 Very subtle yet remarkable improvement ✨
@@ -190,7 +190,9 @@ export default function Preferences() { | |||
<div className="mt-4 max-w-md"> | |||
<h4>Repository URL</h4> | |||
<input type="text" value={dotfileRepo} className="w-full" placeholder="e.g. https://github.com/username/dotfiles" onChange={(e) => setDotfileRepo(e.target.value)} /> | |||
<p className="text-base text-gray-500 dark:text-gray-400">Add a repository URL that includes dotfiles. Gitpod will clone and install your dotfiles for every new workspace.</p> | |||
<div className="mt-1"> |
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.
Nit: You could add the mt-1
class to the <p/>
element below, in order to avoid extra nesting. Not very important though.
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.
FWIW, Tried to replicate the semantics structure we already use elsewhere:
gitpod/components/dashboard/src/settings/EnvironmentVariables.tsx
Lines 73 to 75 in e2c1988
<div className="mt-1"> | |
<p className="text-gray-500">You can pass a variable for a specific project or use wildcard character (<CodeText>*/*</CodeText>) to make it available in more projects.</p> | |
</div> |
Also, agree we could make this could be improved. Creating a reusable component for this form element could help. 💡
LGTM label has been added. Git tree hash: b1364a7b456d86e1a4ccdc4b498d641ea2edeac3
|
Okay fine @roboquat 🙄 /approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jankeromnes Associated issue requirement bypassed by: jankeromnes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks, @jankeromnes! 🏀 |
Description
Following the changes in #7337, this will update dotfiles input help text design to match the design of other help text instances accross the product.
How to test
/preferences
/variables
.Release Notes