Skip to content

BGDIINF_SB-2829: Text in tooltips is now selectable#396

Merged
jedef merged 1 commit intodevelopfrom
bugfix-BGDIINF_SB-2829-cant-copy-from-tooltip
Mar 28, 2023
Merged

BGDIINF_SB-2829: Text in tooltips is now selectable#396
jedef merged 1 commit intodevelopfrom
bugfix-BGDIINF_SB-2829-cant-copy-from-tooltip

Conversation

@jedef
Copy link
Contributor

@jedef jedef commented Mar 20, 2023

Text in the tooltips of features was previously not selectable. This
commit fixes this. The classname map-popover-overlay did not exist.
Removing this classname activates instead the default class name
ol-selectable and ol-overlay-container which makes the text in the
overlay selectable. (The overlay is a child of the openlayersmap which
deactivates selection)

Test link

@jedef jedef requested a review from pakb March 20, 2023 17:07
@github-actions github-actions bot added the bug label Mar 20, 2023
@jedef jedef requested a review from ltshb March 27, 2023 08:44
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Looks good but I don't understand why it did not work before, was it because of the map-popover-overlay class ? Where is this class defined ? Looking at the code diff I would have expect that the text selection of the location popup is removed ! So maybe better explain the code changes in commit.

Text in the tooltips of features was previously not selectable. This
commit fixes this. The classname map-popover-overlay did not exist.
Removing this classname activates instead the default class name
ol-selectable and ol-overlay-container which makes the text in the
overlay selectable. (The overlay is a child of the openlayersmap which
deactivates selection)
@jedef jedef force-pushed the bugfix-BGDIINF_SB-2829-cant-copy-from-tooltip branch from f50f8cb to 85c43ad Compare March 27, 2023 15:37
@jedef
Copy link
Contributor Author

jedef commented Mar 27, 2023

Looks good but I don't understand why it did not work before, was it because of the map-popover-overlay class ? Where is this class defined ? Looking at the code diff I would have expect that the text selection of the location popup is removed ! So maybe better explain the code changes in commit.

I changed the commit message.

@jedef jedef requested a review from ltshb March 27, 2023 15:39
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Great thanks

@jedef jedef merged commit 170ccfa into develop Mar 28, 2023
@jedef jedef deleted the bugfix-BGDIINF_SB-2829-cant-copy-from-tooltip branch March 28, 2023 07:34
@pakb pakb mentioned this pull request May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants