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

Icon links and buttons need to have a title to show a tooltip | Fixes #972 #973

Merged
merged 8 commits into from
Jun 8, 2018
Merged

Icon links and buttons need to have a title to show a tooltip | Fixes #972 #973

merged 8 commits into from
Jun 8, 2018

Conversation

carloslancha
Copy link
Contributor

No description provided.

@carloslancha carloslancha changed the title SF | Fixes #972 Icon links and buttons need to have a title to show a tooltip | Fixes #972 Jun 7, 2018
@coveralls
Copy link

coveralls commented Jun 7, 2018

Pull Request Test Coverage Report for Build 887

  • 0 of 19 (0.0%) changed or added relevant lines in 1 file are covered.
  • 16 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.2%) to 81.013%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/clay-tooltip/src/ClayTooltip.js 0 19 0.0%
Files with Coverage Reduction New Missed Lines %
packages/clay-dropdown/src/ClayCreationMenuDropdown.soy.js 1 79.56%
packages/clay-tooltip/src/ClayTooltip.js 1 41.43%
packages/clay-management-toolbar/src/ClayManagementToolbar.soy.js 3 88.46%
packages/clay-button/src/ClayButton.soy.js 3 81.67%
packages/clay-dropdown/src/ClayDropdownBase.soy.js 8 79.36%
Totals Coverage Status
Change from base Build 881: -0.2%
Covered Lines: 5102
Relevant Lines: 5468

💛 - Coveralls

@jbalsas
Copy link
Contributor

jbalsas commented Jun 7, 2018

@matuzalemsteles, could you please take a look here? 👍

@matuzalemsteles
Copy link
Member

Just started reviewing :)

:octocat: Sent from GH.

@matuzalemsteles
Copy link
Member

LGTM!

hey @carloslancha, It seems that the tooltip has some bugs when it is passed the mouse over it does the wrong calculation and the second time, fixes...

http://recordit.co/QKqJaIi0p0

@carloslancha
Copy link
Contributor Author

Hi @matuzalemsteles yep, I already reported it when we merged the component. If you want to take a look would be helpful ;)

Thx!

@matuzalemsteles
Copy link
Member

Ah yeah, I had not seen it, sorry 😅. I can take a look at this tomorrow 🙂.

if (titleTag) {
target.setAttribute('data-title', titleTag.innerHTML);
target.setAttribute('data-restore-title', 'true');
titleTag.remove();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to do this for svgs? The only reason we remove the title attribute is to make sure it doesn't show the default tooltip. Does it also happens for svgs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jbalsas yep 😅

@jbalsas jbalsas merged commit 053b022 into liferay:develop Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants