L
L
Larisa2017-04-30 13:08:06
css
Larisa, 2017-04-30 13:08:06

Is this design and naming of the form correct in BEM?

<form class="form form_flowers">

        <div class="form__group">
            <div class="label-group">
                <label class="label-group__label" for="test">Текст</label>
            </div>
            <div class="input-group">
                <input class="input-group__input" type="text" id="test">
                <span class="input-group__addon">
                    @
                </span>
            </div>
        </div>

    </form>

I create a template to use to create a form with fields:
  • Plain
  • Horizontal
  • input with button
  • input with icon
  • Button group

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Polina Emelyanova, 2017-04-30
@bugo_aneo

WHO is their parent, i.e. parent block???

class="label-group
class="input-group

You have lost your Block.)))

S
solascriptura, 2017-04-30
@solascriptura

In my opinion, everything is correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question