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のStateパターン変更 #13

Closed
herablog opened this issue Aug 18, 2020 · 0 comments · Fixed by #77
Closed

ButtonのStateパターン変更 #13

herablog opened this issue Aug 18, 2020 · 0 comments · Fixed by #77

Comments

@herablog
Copy link
Member

herablog commented Aug 18, 2020

詳細は後で追加します。

変更内容

「ボタンをタップ→クライアントvalidationエラーが発生して画面遷移しない」場合に、hover時の濃いスタイルが残り続けてしまうのが違和感がある、というフィードバックを受けて、ボタンらしいbuttonの各Stateのスタイルの見直しを行いました。

変更後、ブラウザごとのStateによる見た目の違い

  • Android Chrome: タップ時に :active のスタイルが表示される
  • iOS Safari: タップ時に tap-highlight-color がUIの上に重なって表示される
    • active時のスタイルは適用されないため、表示されない
  • PCブラウザ: クリック時に :hover:active が表示される
    • IEでは @media hover がサポート外のため :hover が表示されない
    • ボタンらしいbuttonに限定して変更することにしたのはこのため(=hoverしなくても押せることが想起できるデザインのボタンのみに適用)

ref: 認証プロジェクトの #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant