Skip to content

[a11y] Add dark mode support to InputWithCopy and TextInputField components #19011

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

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

Siddhant-K-code
Copy link
Member

@Siddhant-K-code Siddhant-K-code commented Nov 4, 2023

Description

Text inside disabled modal is more readable now in dark mode.

Before After
Screenshot 2023-11-04 at 4 05 02 PM Screenshot 2023-11-04 at 4 03 48 PM
Screenshot 2023-11-04 at 4 07 24 PM Screenshot 2023-11-04 at 4 07 01 PM
Summary generated by Copilot

🤖 Generated by Copilot at 080cfa3

Improve text contrast and readability of TextInput components in dark mode. Apply a dark text color to TextInput in components/dashboard/src/components/forms/TextInputField.tsx and components/dashboard/src/components/InputWithCopy.tsx.

Related Issue(s)

Fixes internal conversation

How to test

  • Open preview in dark mode
  • Go to Org./User settings, see Org. Id/User ID in text
  • Also, Open workspace in VS Code Desktop, Click More Actions... & then click on Connect via SSH and see SSH command is more readable now 👀

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@@ -97,7 +97,7 @@ export const TextInput: FunctionComponent<TextInputProps> = memo(
return (
<input
id={id}
className={classNames("w-full max-w-lg", className)}
className={classNames("w-full max-w-lg dark:text-[#A8A29E]", className)}
Copy link
Contributor

Choose a reason for hiding this comment

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

  • can we use a color that we use elsewhere?
  • would this not be dependent on the disabled state?

Copy link
Member Author

Choose a reason for hiding this comment

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

can we use a color that we use elsewhere?

I used the SVG color of Copy icon.


can we use a color that we use elsewhere?
would this not be dependent on the disabled state?

Looks good to me, that both of the text is readable:

image

@Siddhant-K-code
Copy link
Member Author

/unhold

@roboquat roboquat merged commit 18e04fb into main Nov 5, 2023
@roboquat roboquat deleted the fix-a11y/dark-mode branch November 5, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants