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

Position date picker dialog below help text #1584

Merged
merged 3 commits into from
Dec 15, 2020
Merged

Position date picker dialog below help text #1584

merged 3 commits into from
Dec 15, 2020

Conversation

danieldafoe
Copy link
Contributor

@danieldafoe danieldafoe commented Oct 25, 2020

Originally intended to address issue #1531. As it turns out, that issue might only be reproduceable on Linux and is slightly different; it is related to the position of the button, not the dialog.

Preview

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2020

Regression test coverage:

Examples without any regression tests:

  • dialog-modal/alertdialog.html

Examples missing some regression tests:

  • dialog-modal/datepicker-dialog.html:
    • textbox-aria-describedby
  • menu-button/menu-button-actions-active-descendant.html:
    • menu-up-arrow
    • menu-down-arrow
    • menu-character
  • toolbar/toolbar.html:
    • toolbar-tab
    • toolbar-right-arrow
    • toolbar-left-arrow
    • toolbar-home
    • toolbar-end
    • toolbar-toggle-esc
    • toolbar-toggle-enter-or-space
    • toolbar-radio-enter-or-space
    • toolbar-radio-down-arrow
    • toolbar-radio-up-arrow
    • toolbar-button-enter-or-space
    • toolbar-menubutton-enter-or-space-or-down-or-up
    • toolbar-menu-enter-or-space
    • toolbar-menu-down-arrow
    • toolbar-menu-up-arrow
    • toolbar-menu-escape
    • toolbar-spinbutton-down-arrow
    • toolbar-spinbutton-up-arrow
    • toolbar-spinbutton-page-down
    • toolbar-spinbutton-page-up
    • toolbar-checkbox-space
    • toolbar-link-enter-or-space
    • toolbar-spinbutton-role

Example pages with Keyboard or Attribute table rows that do not have data-test-ids:

  • dialog-modal/alertdialog.html
    • "Keyboard Support" table(s):
      • Tab
      • Shift + Tab
      • Escape
      • Command + S
      • Control + S
    • "Attributes" table(s):
      • alertdialog
      • aria-labelledby=IDREF
      • aria-describedby=IDREF
      • aria-modal=true
      • alert

SUMMARY:

55 example pages found.
1 example pages have no regression tests.
3 example pages are missing approximately 27 out of approximately 780 tests.

ERROR - missing tests:

Please write missing tests for this report to pass.

@carmacleod
Copy link
Contributor

Thanks, @danieldafoe!
We discussed this and decided that the dialog could go right under the button/text field, i.e. margin-top: 0; (or don't set at all).
This would have the effect of completely obscuring the help text, but when the dialog is open the help text isn't really necessary.
Do you agree?

@danieldafoe
Copy link
Contributor Author

@carmacleod Ah, that makes sense indeed! I can make that change instead.

@danieldafoe
Copy link
Contributor Author

@carmacleod I hope you don't mind, but my design eye found that margin-top: 0 was a bit too close to the icon, so I chose a value that gave a bit more breathing room, yet still covers the help text.

Let me know what you think!

Copy link
Contributor

@carmacleod carmacleod left a comment

Choose a reason for hiding this comment

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

Looks great!
Thanks @danieldafoe !

Copy link
Contributor

@spectranaut spectranaut left a comment

Choose a reason for hiding this comment

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

I'm perfectly fine with this change but it doesn't actually solve the issue of the calendar butotn obscuring the help text, in chrome or firefox, as seen in my comment here: #1531

@a11ydoer
Copy link
Contributor

a11ydoer commented Dec 15, 2020

Screen capture is in the issue 1531

@mcking65
Copy link
Contributor

Per comment from @spectranaut, I'm removing the association between this PR and #1531. Nonetheless, we have consensus that this is an improvement in the dialog positioning. So, going forward with the merge.

Thank you @danieldafoe

@mcking65 mcking65 merged commit 7907fea into w3c:master Dec 15, 2020
@mcking65 mcking65 added enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Example Page Related to a page containing an example implementation of a pattern labels Dec 15, 2020
@mcking65 mcking65 added this to the 1.2 Release 1 milestone Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any addition or improvement that doesn't fix a code bug or prose inaccuracy Example Page Related to a page containing an example implementation of a pattern
Development

Successfully merging this pull request may close these issues.

5 participants