- Issue created by @johnv
In the related UX/A11y issues, it is proposed to remove the hover text from src/Element/OfficeHoursDatetime.php , that gives more precise information about the time increment.
(In Drupal core, this is also removed)
diff --git a/src/Element/OfficeHoursDatetime.php b/src/Element/OfficeHoursDatetime.php
index 3ce36d7e480b663ab80a5632f4ed3a8c9cd9badd..88b6254119aa668f4d42020e0543af1047dd9fff 100644
--- a/src/Element/OfficeHoursDatetime.php
+++ b/src/Element/OfficeHoursDatetime.php
@@ -92,15 +87,6 @@ class OfficeHoursDatetime extends Datetime {
// Fix the convention: minutes vs. seconds.
$element['time']['#attributes']['step'] = $increment * 60;
- // Add a more precise hover text.
- $element['time']['#attributes']['title'] = \Drupal::translation()->formatPlural(
- $increment,
- 'Time, with an increment of one minute (e.g. @format)',
- 'Time, with an increment of @count minutes (e.g. @format)',
- [
- '@count' => $increment,
- '@format' => $time_example,
- ]);
return $element;
}
Explain why this is better for UX.
Active
1.0
Code - widget