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

EZP-31417: Added tooltips to UDW #278

Merged
merged 3 commits into from
Mar 24, 2020

Conversation

lucasOsti
Copy link
Contributor

@lucasOsti lucasOsti commented Mar 11, 2020

Question Answer
Tickets EZP-31417
Bug fix? no
New feature? yes
BC breaks? no
Tests pass? no
Doc needed? no
Related to ezsystems/ezplatform-admin-ui#1274
https://github.com/ezsystems/date-based-publisher/pull/157
https://github.com/ezsystems/ezplatform-calendar/pull/49

Added tooltips to UDW

Checklist:

  • Implement tests
  • Coding standards ($ composer fix-cs)

@lucasOsti lucasOsti requested review from GrabowskiM and dew326 March 11, 2020 15:14
@lucasOsti lucasOsti force-pushed the EZP-31417-added-tooltips branch from 9da4564 to 99e1b5d Compare March 11, 2020 15:15
useEffect(() => {
window.eZ.helpers.tooltips.parse(window.document.querySelector('.c-selected-locations'));
window.eZ.helpers.tooltips.hideAll();
window.document.querySelector('.c-selected-locations__toggle-button').dataset.originalTitle = togglerLabel;
Copy link
Contributor

Choose a reason for hiding this comment

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

ref

@lucasOsti lucasOsti requested a review from GrabowskiM March 13, 2020 09:09
@@ -10,6 +10,10 @@ const ContentTable = ({ count, itemsPerPage, items, activePageIndex, title, onPa
const modifiedLabel = Translator.trans(/*@Desc("Modified")*/ 'content_table.modified', {}, 'universal_discovery_widget');
const contentTypeLabel = Translator.trans(/*@Desc("Content Type")*/ 'content_table.content_type', {}, 'universal_discovery_widget');

useEffect(() => {
window.eZ.helpers.tooltips.parse(window.document.querySelector('.c-content-table'));
Copy link
Contributor

Choose a reason for hiding this comment

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

ref?

@lucasOsti lucasOsti requested a review from GrabowskiM March 13, 2020 11:46
@bogusez
Copy link

bogusez commented Mar 16, 2020

@lucasOsti please watch the gif and fix the issues
https://recordit.co/YWV8O58i8F

@bogusez
Copy link

bogusez commented Mar 16, 2020

Screenshot 2020-03-16 at 12 10 49

@bogusez
Copy link

bogusez commented Mar 16, 2020

Screenshot 2020-03-16 at 12 12 57

@bogusez
Copy link

bogusez commented Mar 16, 2020

Clear input field data button don't have tooltip label

Screenshot 2020-03-16 at 12 15 08

const widgetClassName = createCssClassNames({
'c-content-create': true,
'c-content-create--hidden': !createContentVisible,
});

useEffect(() => {
window.eZ.helpers.tooltips.parse(window.document.querySelector('.c-content-create'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be done with ref instead of querySelector?

useEffect(() => {
window.eZ.helpers.tooltips.hideAll(window.document.querySelector('.c-udw-tab'));

if (refToggleSelectionButton.current.getAttribute('data-original-title')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would add some comment here explaining what's happening here

@lucasOsti lucasOsti requested a review from GrabowskiM March 23, 2020 15:51
@lserwatka lserwatka merged commit 70647e5 into ezsystems:master Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants