Z
Z
Zhanna_K2020-10-21 17:18:46
Sass
Zhanna_K, 2020-10-21 17:18:46

What happened to the form element?

I'm making a card. Here is the component

import React from "react";
import styles from "./searchCard.module.scss";
import Textfield from "../../Textfield/Textfield";
import SubmitButton from "../../Button/Submit/SubmitButton";
const SearchCard = () => {
  return (
    <div className={styles.card__wrapper}>
      <h1 className={styles.card__title}>Найдём номера под ваши пожелания</h1>
      <form сlassName={styles.card__form}>
        <Textfield role='dropdown' size='sm' placeholder='ДД.ММ.ГГГГ' />
        <Textfield role='dropdown' size='sm' placeholder='ДД.ММ.ГГГГ' />
        <Textfield role='dropdown' size='lg' placeholder='Сколько гостей' />
        <SubmitButton
          size='Xlarge'
          selector='contained'
          text='Подобрать номер'
        />
      </form>
    </div>
  );
};

export default SearchCard;

As a result, I see that the styles were not applied to the FORM element, they are applied to all the rest.
Here is what I see in ChromeDevtools
5f90425f65ed1345626694.png
Question? Why is there classname when all other elements have normal classes?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question