-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
implement watermark config option #3280
Conversation
@@ -5,12 +5,12 @@ | |||
z-index: 1001; | |||
} | |||
|
|||
.modebar--hover { | |||
.modebar--hover > :not(.watermark) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently :not
is supported IE9+: https://caniuse.com/#search=%3Anot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSS child selector should also work in IE9+. The reason we use it is because we cannot override the opacity
of a child if the parent has a CSS opacity
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find. But we should test this out in IE9 and IE11 (from browserstack) before merging this thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait, right the main plotly.js bundle doesn't work in ie9.
You'll need to use plotly-basic.js
:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More precisely, all SVG-based traces should work in IE9.
We could maybe add some info here ->
https://github.com/plotly/plotly.js/tree/master/dist#to-support-ie9
@@ -133,6 +133,9 @@ module.exports = { | |||
// add the plotly logo on the end of the mode bar | |||
displaylogo: true, | |||
|
|||
// watermark the images with the company's logo | |||
watermark: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesss! false
by default 👌
Looking good! It should be possible to add the a few test cases in https://github.com/plotly/plotly.js/blob/master/test/jasmine/tests/modebar_test.js to 🔒 down the new |
💃 nicely done. |
Closes #3268 exactly as described/requested by @nicolaskruchten's in his first comment #3268 (comment)