From c40c132caae0d0487ff58cd030081cda3919696a Mon Sep 17 00:00:00 2001
From: Brandon Hopkins <76761586+TechHutTV@users.noreply.github.com>
Date: Sat, 22 Nov 2025 01:09:46 -0800
Subject: [PATCH] Fix .videowrapper and update button and search components for
consistency in text labels (#491)
* Update button and search components for consistency in text labels
- Changed button class to prevent text overflow by adding 'whitespace-nowrap'.
- Updated placeholder and button text from 'Find something...' to 'Search...' for clarity and uniformity across the search components.
- Adjusted aria-labels to match the updated button text for improved accessibility.
* Fix videowrapper
---
src/components/Button.jsx | 2 +-
src/components/Search.jsx | 10 ++++----
src/styles/tailwind.css | 50 +++++++++++++++++++++++++++++----------
3 files changed, 44 insertions(+), 18 deletions(-)
diff --git a/src/components/Button.jsx b/src/components/Button.jsx
index 5603694c..7827a8da 100644
--- a/src/components/Button.jsx
+++ b/src/components/Button.jsx
@@ -36,7 +36,7 @@ export function Button({
let Component = props.href ? Link : 'button'
className = clsx(
- 'inline-flex gap-0.5 justify-center overflow-hidden text-sm font-medium transition',
+ 'inline-flex gap-0.5 justify-center overflow-hidden text-sm font-medium transition whitespace-nowrap',
variantStyles[variant],
className
)
diff --git a/src/components/Search.jsx b/src/components/Search.jsx
index 05863f0c..8ec5ad18 100644
--- a/src/components/Search.jsx
+++ b/src/components/Search.jsx
@@ -19,7 +19,7 @@ function useAutocomplete() {
let [autocomplete] = useState(() =>
createAutocomplete({
id,
- placeholder: 'Find something...',
+ placeholder: 'Search...',
defaultActiveItemId: 0,
onStateChange({ state }) {
setAutocompleteState(state)
@@ -307,7 +307,7 @@ function SearchButton(props) {
{...props}
>
- Find something...
+ Search...
{modifierKey}
K
@@ -316,7 +316,7 @@ function SearchButton(props) {