Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button:ボタンのClass名をbtnからbuttonに変更 #156

Closed
qrac opened this issue Mar 8, 2019 · 2 comments
Closed

Button:ボタンのClass名をbtnからbuttonに変更 #156

qrac opened this issue Mar 8, 2019 · 2 comments

Comments

@qrac
Copy link
Owner

qrac commented Mar 8, 2019

ボタンだけ省略名が使われているため違和感を感じる。当時はBootstrapを参考にして .btn は一般的なんだなと採用した経緯がある。Bulmaなどは .button が使われている。

変更の場合は .btns.buttons、SCSS変数名も全て修正する事になる。

@qrac
Copy link
Owner Author

qrac commented Mar 9, 2019

v6以前のプロジェクトにv7以降を適応できるよう、ボタンのclass名を変数化しておく。変数のオーバーライドでどちらのボタンクラスでもスタイルが当たるようにできる。

$buttons-class: ".buttons, .btns";
$buttons-bar-class: ".buttons, .btns, .field";
$button-class: ".button, .btn";

qrac added a commit that referenced this issue Mar 9, 2019
@qrac
Copy link
Owner Author

qrac commented Mar 14, 2019

v7.0.0 alpha版にて実装完了。

@qrac qrac closed this as completed Mar 15, 2019
@qrac qrac changed the title Button:ボタンのclass名をbtnからbuttonに変更 Button:ボタンのClass名をbtnからbuttonに変更 Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant