Closed sipayRT closed 9 years ago
@veged @dfilatov @narqo @tadatuta @aristov Are we really need to keep in mind the possibility of changing the tag? Or we shouldn't support it?
as we already use different tag in attach
I suggest to add the check for tag to isRealButton
condition as well
Now in templates we check just
type
modifier:But if we will change in BEMJSON tag, for example, to
<div>
, variableisRealButton
still will betrue
. It's wrong because we can't add some attributes such asdisabled
to<div>
.In the
attach
block it's very important because we use<span>
tag instead of<button>
. As a result — disabled button inattach
block will be disabled only visually for a11y's programs.