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

Issue#13 update dialogcard js #14

Closed
wants to merge 1 commit into from
Closed

Conversation

nexttee
Copy link

@nexttee nexttee commented Jan 11, 2017

add a span wrapper around the output for the Turn button

add a span wrapper around the output for the Turn button
@tajakobsen
Copy link
Contributor

tajakobsen commented Jan 11, 2017

@nexttee Why do you want to add a <span> around the button text?

@nexttee
Copy link
Author

nexttee commented Jan 11, 2017

@tajakobsen thanks for the response...
The Dialog Card displays a button on the bottom to Turn the card.
There is CSS that assigns an font awesome glyph using :before.
We want to keep the glyph but remove the text that says 'Turn'.

@tajakobsen
Copy link
Contributor

Hi @nexttee. Unfortunately I can't merge in this solution. It's not hurting anything, but it's not generally useful either.

But thank you for being part of the community! I hope this doesn't discourage you from creating more pull requests.

@tajakobsen tajakobsen closed this Jan 17, 2017
@nexttee
Copy link
Author

nexttee commented Jan 17, 2017

It's your product.
I'm only disappointed because I need to remove that text.
Do you have a solution that will work to hide the text but retain the symbol?
If you have time, please let me know.

@nexttee
Copy link
Author

nexttee commented Jan 18, 2017

My current solution is to process a JQuery override for the button after the H5P data loads.
$('iframe.h5p-iframe.h5p-initialized').ready(launchChangeTurnLabel);

this sets a timeout function that checks for the existence of the Turn button
setTimeout(function () {
if ($('iframe.h5p-iframe.h5p-initialized').contents().find('.h5p-dialogcards-turn').size()) {

Do you think I can do better?

@tajakobsen
Copy link
Contributor

Hi @nexttee .

This is a bit hacky, but it should work.

.h5p-dialogcards .h5p-joubelui-button.h5p-dialogcards-turn,
.h5p-dialogcards .h5p-joubelui-button.h5p-dialogcards-turn:hover {
  color: transparent;
  width: 42px;
}

.h5p-dialogcards .h5p-joubelui-button.h5p-dialogcards-turn:before {
  color: white;
}

I just hide the text by setting it transparent, and make the icon white again. And I force the width of the button.

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.

2 participants