ally: disable btns styling, auto focus forms fields

This commit is contained in:
MTG2000
2022-05-07 16:49:11 +03:00
parent 7e7537bbd9
commit ca8eec9605
6 changed files with 10 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ export default function Button({ color = 'white',
type='button'
className={`${classes} ${className}`}
onClick={() => handleClick()}
disabled={disabled}
{...props}
>
{/* {isLoading ? <Loading color={loadingColor[color]} /> : children} */}

View File

@@ -106,6 +106,7 @@ export default function BountyForm() {
</p>
<div className="input-wrapper mt-8 relative">
<input
autoFocus
type='text'
className="input-text"
placeholder='Your Bounty Title'

View File

@@ -80,6 +80,7 @@ export default function QuestionForm() {
</p>
<div className="input-wrapper mt-8 relative">
<input
autoFocus
type='text'
className="input-text"
placeholder='Your Question Title'

View File

@@ -80,6 +80,7 @@ export default function StoryForm() {
</p>
<div className="input-wrapper mt-8 relative">
<input
autoFocus
type='text'
className="input-text"
placeholder='Your Story Title'

View File

@@ -56,6 +56,7 @@ export default function Login_SuccessCard({ onClose, direction, ...props }: Moda
</p>
<div className="input-wrapper mt-24 relative">
<textarea
autoFocus
rows={6}
className="input-text !p-20"
placeholder='What steps will you take to complete this task? '

View File

@@ -7,4 +7,9 @@
/* Firefox */
.input-removed-arrows[type="number"] {
-moz-appearance: textfield;
}
button[disabled]{
opacity: .5;
pointer-events: none;
}