style answer option
This commit is contained in:
parent
05d5d396b8
commit
71e9f52e70
3 changed files with 12 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
|||
/*AddAnswerButton.module.css*/
|
||||
|
||||
.answerButton {
|
||||
margin-top: 18px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -7,17 +7,25 @@
|
|||
}
|
||||
|
||||
.textAnswer{
|
||||
border: none;
|
||||
background-color: #ffffff;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.answerIcon{
|
||||
vertical-align: middle;
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
.answerInput{
|
||||
vertical-align: middle;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
outline: none;
|
||||
border: none;
|
||||
resize: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@ import styles from'./AnswerOption.module.css';
|
|||
const single_selected_response = '../../../public/radio_button_checked.svg';
|
||||
const multiple_selected_response = '../../../public/check_box.svg';
|
||||
// const single_response =
|
||||
// const multiple_response =
|
||||
|
||||
interface AnswerOptionProps{
|
||||
index: number;
|
||||
|
|
@ -14,7 +15,7 @@ interface AnswerOptionProps{
|
|||
|
||||
const AnswerOption: React.FC<AnswerOptionProps> = ({index, value, onChange, selectedType}) => {
|
||||
const [currentValue, setCurrentValue] = useState(value);
|
||||
const [isEditing, setIsEditing] = useState(false); //редактируется ли сейчас
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
|
||||
const textAreaRef = useRef<HTMLTextAreaElement>(null);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue