Skip to content

Publish button shows unnecessary tooltip #56755

Closed

Description

@afercia

Description

Noticed while working on #56214

The Publish button in the settings sidebar may show a tooltip that just repeats the visible text in the button. The button used to truncate the visible text (at least in the Site editor). It was recently changed to show the full date / time so that the tooltip seems unnecessary now and it just clutters the UI.
See #56319 and #56196

However, when the Timezone setting is set to the user actual time zone, the visible text is a shorter version of the expansion shown in the tooltip. Only when the Timezone setting is different, the visible text and the tooltip text are the same.

Screenshots:

Screenshot 2023-12-04 at 14 15 09

Screenshot 2023-12-04 at 14 24 19

Step-by-step reproduction instructions

  • Go to the WordPress admin, Settings > General Settings > Timezone.
  • Set the Timezone value to a value other than your actual time zone.
  • Edit a post.
  • Hover the publish date button.
  • Observe the tooltip just repeats the visible text.
  • Go to the WordPress admin, Settings > General Settings > Timezone.
  • Set the Timezone value to your actual time zone.
  • Edit a post.
  • Hover the publish date button.
  • Observe the tooltip contains more information than the visible text.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    [Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).
    on Dec 4, 2023
  2. afercia commented on Dec 4, 2023

    @afercia
    ContributorAuthor

    Worth reminding special cases like the 'Immediately' string that needs expansion and the 'same day' date case. E.g.:

    Screenshot 2023-12-04 at 14 45 59

    Anyways, when the visible text and the tooltip text are the same, the tooltip should not be used.

  3. self-assigned this
    on Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Editor/packages/editor[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions