UX - improvements Input Placeholders (#2780)

* add placeholders

* placeholders for clone collection

* placeholders for inputs, placeholder-global-opacity, change cursor type for clickables

* revert placeholders for collection creation and collection cloning

* revert c-placeholder

* revert: cliert cert placeholder
This commit is contained in:
Pragadesh-45 2024-08-08 15:48:54 +05:30 committed by GitHub
parent 9fdfee0083
commit edb8708dde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 2 deletions

View File

@ -74,6 +74,7 @@ const PresetsSettings = ({ collection }) => {
id="request-url" id="request-url"
type="text" type="text"
name="requestUrl" name="requestUrl"
placeholder='Enter Request URL'
className="block textbox" className="block textbox"
autoComplete="off" autoComplete="off"
autoCorrect="off" autoCorrect="off"

View File

@ -58,6 +58,7 @@ const CloneCollectionItem = ({ collection, item, onClose }) => {
id="collection-item-name" id="collection-item-name"
type="text" type="text"
name="name" name="name"
placeholder='Enter Item name'
ref={inputRef} ref={inputRef}
className="block textbox mt-2 w-full" className="block textbox mt-2 w-full"
autoComplete="off" autoComplete="off"

View File

@ -91,13 +91,13 @@ const Collections = () => {
<input <input
type="text" type="text"
name="search" name="search"
placeholder="search"
id="search" id="search"
autoComplete="off" autoComplete="off"
autoCorrect="off" autoCorrect="off"
autoCapitalize="off" autoCapitalize="off"
spellCheck="false" spellCheck="false"
className="block w-full pl-7 py-1 sm:text-sm" className="block w-full pl-7 py-1 sm:text-sm"
placeholder="search"
value={searchText} value={searchText}
onChange={(e) => setSearchText(e.target.value.toLowerCase())} onChange={(e) => setSearchText(e.target.value.toLowerCase())}
/> />

View File

@ -160,7 +160,7 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, collectionName, trans
type="text" type="text"
name="collectionLocation" name="collectionLocation"
readOnly={true} readOnly={true}
className="block textbox mt-2 w-full" className="block textbox mt-2 w-full cursor-pointer"
autoComplete="off" autoComplete="off"
autoCorrect="off" autoCorrect="off"
autoCapitalize="off" autoCapitalize="off"

View File

@ -229,6 +229,7 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
id="request-name" id="request-name"
type="text" type="text"
name="requestName" name="requestName"
placeholder="Enter Request Name"
ref={inputRef} ref={inputRef}
className="block textbox mt-2 w-full" className="block textbox mt-2 w-full"
autoComplete="off" autoComplete="off"
@ -261,6 +262,7 @@ const NewRequest = ({ collection, item, isEphemeral, onClose }) => {
id="request-url" id="request-url"
type="text" type="text"
name="requestUrl" name="requestUrl"
placeholder="Enter Request URL"
className="px-3 w-full " className="px-3 w-full "
autoComplete="off" autoComplete="off"
autoCorrect="off" autoCorrect="off"

View File

@ -38,6 +38,11 @@ body {
overflow-x: hidden; overflow-x: hidden;
} }
input::placeholder {
color: #a2a2a2;
opacity: 50%;
}
body { body {
font-size: 0.875rem; font-size: 0.875rem;
} }