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

ユーザーモーダルのアイコンのはみ出している部分をクリックすると閉じないように修正した #4190

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Nattuki
Copy link
Contributor

@Nattuki Nattuki commented Dec 8, 2023

close #4143

@Nattuki Nattuki self-assigned this Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9e8f0d6) 86.35% compared to head (6dbae70) 86.35%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4190   +/-   ##
=======================================
  Coverage   86.35%   86.35%           
=======================================
  Files          66       66           
  Lines        4719     4719           
  Branches      564      564           
=======================================
  Hits         4075     4075           
  Misses        638      638           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mehm8128 mehm8128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!
グループのオーナー・メンバー追加(UsersSelectorコンポーネント)で、アイコンの部分をクリックしても追加できていたのができなくなってしまっているのでどうにかしたいですね:thinking:
元々preventModalのときに@click.stopされるのをpointer-events: noneで防いでいたのがなくなってしまったから起きてそうです
image

Copy link
Member

@mehm8128 mehm8128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

機能的には要件満たせているのですが、やっぱりisUserModalで分けるのあんまりよくなさそうですね...
そもそもボタンとして扱うコンポーネントと画像として扱うコンポーネントが一緒になっているのがよくないので、今あるUserIconコンポーネントは画像として扱うもの(ユーザーモーダルで表示するものなど、isClickableがfalseになるようなもの)で直接使うようにして、その他ボタンとして扱う用のUserIconButtonコンポーネント(UserIconコンポーネントをbuttonタグで囲ったもの)を別で作るのがよさそうな気がします

現在のボタンと画像が一緒になっちゃっているUserIconの実装だと、a11y的にも色々とよくないので、変更箇所は多くなりますがコード的にだけでなく、機能的にもかなり意味のあるPRになると思うのでお願いしたいです!

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