-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
settings: Replace extraneous pointer cursors on text with text cursor. #25071
base: main
Are you sure you want to change the base?
Conversation
Hello @zulip/server-settings, @zulip/server-streams members, this pull request was labeled with the "area: settings (user)", "area: stream settings", "area: settings (admin/org)" labels, so you may want to check it out! |
Hey @alya , I have opened a new pull request for #24623 after the review by @timabbott , with a new approach. Could you please review the pull request? Thanks :) |
Looks good to me in manual testing! @sahil839 could you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posted a couple of comments.
A couple of points to confirm from @alya
- We open the "Change email" and "Change password" modal on clicking the labels after changes in this PR. I don't have any strong opinion on this, but just wanted to point it out in case you missed it while testing. Also, we should probably mention about this change in the commit message as well.
- Do we want a regular cursor or text cursor? By regular cursor, I mean the arrow which is shown by default.
@@ -1,5 +1,5 @@ | |||
<div class="custom_user_field" name="{{ field.name }}" data-field-id="{{ field.id }}"> | |||
<label class="inline-block" for="{{ field.name }}" class="title">{{ field.name }}</label> | |||
<label for="{{field.name}}" class="inline-block title">{{ field.name }}</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can avoid removing the space before and after field.name
in this commt.
<label for="realm_move_messages_within_stream_limit_seconds" class="dropdown-title">{{t "Time limit for editing topics" }} <i>({{t "does not apply to moderators and administrators" }})</i></label> | ||
<select name="realm_move_messages_within_stream_limit_seconds" id="id_realm_move_messages_within_stream_limit_seconds" class="prop-element settings_select" data-setting-widget-type="time-limit"> | ||
<label for="id_realm_move_messages_within_stream_limit_seconds" class="dropdown-title">{{t "Time limit for editing topics" }} <i>({{t "does not apply to moderators and administrators" }})</i></label> | ||
<select name="realm_move_messages_within_stream_limit_seconds" id="id_realm_move_messages_within_stream_limit_seconds" class="prop-element bootstrap-focus-style settings_select" data-setting-widget-type="time-limit"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bootstrap-focus-style
can be added in a separate prep commit.
Is this when things aren't clickable? Based on the CZO discussion, we decided to go with the browser default cursor. @_Sahil Batra|10242 said:
|
Ah, I hadn't noticed -- thanks for the callout! I don't have a strong opinion either. Having clicking on the label open the modal seems fine, so let's just update the commit message. |
Update: There has been a minor update in this PR after the discussion on the CZO, I am currently working on release goals PRs and will continue working on this after 4-5 days. |
Heads up @palashb01, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
This commit changes the incorrect 'for' attribute values to the correct ones in order to fix the interaction between label, select/ button elements.
This commit adds or removes 'id' and 'for' attribute values to fix the interaction between label and input elements, so that clicking on the label will focus the corresponding input element. For labels that are not associated with any input element, the 'for' attribute has been removed. To fix the issue of extraneous pointer cursors on labels, a CSS rule has been added so that a default text cursor will be displayed when there is no 'for' attribute. Fixes: zulip#21769
4e54f67
to
dfaa25c
Compare
@zulipbot remove "has conflicts" |
Heads up @palashb01, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
4ec3636
to
88b200c
Compare
Fixes: #21769
Screenshots and screen captures:
Comment for reviewer:
for
andid
attributes, everything works fine and as expected, except for thebirthday
andmentor
inputs. These inputs have a div element that doesn't show any interaction with the label.Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: