Skip to content

Add tooltip when dates in date picker are too long

What does this MR do?

This MR adds a tooltip to the date picker control, when the content of the control is long.

It also changes the tooltip truncate component so the tooltip is shown/hidden according to changes in the content.

Screenshots

image

Why watch

tooltip-on-truncate checks if the tooltip should be added when the component is mounted. But what about if the content changes?

without watch() 🤔

2020-02-07_17.40.02 |

with watch() 👍

The datepicker button has dynamic content, and tooltip-on-truncate must respond to those changes, in case the text length changes.

2020-02-07_17.25.31

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #198460 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports