yiisoft / yii-bootstrap5

Yii Framework Bootstrap 5 support
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
63 stars 19 forks source link

Incomplete and/or invalid BS5 components #79

Closed WinterSilence closed 1 month ago

WinterSilence commented 2 years ago

Same problem as in package yii2-bootstrap5, that's widgets generates not complete or invalid BS5 components. For example, simplest component in BS5 - buttons, widget Button not implements:

basic HTML generator's features:

too not implemented...

What's doing widget? Add class btn and and generate tag i.e.

echo Button::widget()->label('Action')->options(['class' => 'btn-lg']);

generates

<button class="btn btn-lg">Action</button>

HTML tag less than PHP code! This shows that dummy-widgets like as Button are useless to generates BS5 components.