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

#1680 - Fix CSS class name in gmf-mouseposition directive #1816

Merged
merged 1 commit into from
Sep 12, 2016

Conversation

adube
Copy link
Contributor

@adube adube commented Sep 7, 2016

This PR fixes the CSS class name for the gmf mouseposition directive. Changes are made in the example and and desktop application. See #1680. Note that this is one among many PR that will come to fix #1680.

The use of an id within the directive is not a good practice. If one wanted to have 2 maps with each their own mouse positions directive, then it wouldn't work because the directive appends the created control using the id of the element defined within the template. That's not an issue for now, but this could be changed.

Instead of using the id in the CSS, the class name of the control itself is used.

Todo

  • review

Live examples

@gberaudo
Copy link
Member

LGTM. +100 to stop using ids or global objects (ex: document.getElementById).

@gberaudo gberaudo merged commit 440b608 into camptocamp:master Sep 12, 2016
@adube adube deleted the 1680-css-fix-mouseposition branch September 12, 2016 12:26
@adube
Copy link
Contributor Author

adube commented Sep 12, 2016

@gberaudo Thanks. I'll go ahead and create issues for the id matters. I'll create one per component I stumble upon.

If you wish for me to work on them right away, then you can assign them to me.

@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

Add ngeo scope to CSS classes
3 participants