Skip to content

Commit

Permalink
Removed disabled class upload container & button
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaPrahoveanu-SL committed Nov 13, 2024
1 parent b0744fe commit db8a0bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/input.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ textarea::placeholder {
background-color: var(--grey-400);
}

.uploadButton_container.disabled {
.uploadButton_container:has(.uploadButton:disabled) {
color: var(--grey-900);
opacity: 0.5;
}

.uploadButton_container.disabled:hover {
.uploadButton_container:has(.uploadButton:disabled):hover {
color: var(--grey-900);
background-color: var(--grey-300);
opacity: 0.5;
Expand Down
14 changes: 2 additions & 12 deletions frontend/src/components/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import React, {
import styles from './input.module.css';
import RightArrowIcon from '../icons/send.svg';
import UploadIcon from '../icons/upload.svg';
import classNames from 'classnames';
import { Suggestions } from './suggestions';
import { Button } from './button';

Expand Down Expand Up @@ -64,17 +63,8 @@ export const Input = ({ sendMessage, waiting }: InputProps) => {
onChange={onChange}
rows={1}
/>
<div
className={classNames(styles.uploadButton_container, {
[styles.disabled]: sendDisabled,
})}
>
<button
className={classNames(styles.uploadButton, {
[styles.disabled]: sendDisabled,
})}
disabled={sendDisabled}
>
<div className={styles.uploadButton_container}>
<button className={styles.uploadButton} disabled={sendDisabled}>
<img src={UploadIcon} />
</button>
</div>
Expand Down

0 comments on commit db8a0bc

Please sign in to comment.