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

GraphQL Explorer - Make text selectable #2954

Merged

Conversation

lykims
Copy link
Contributor

@lykims lykims commented Dec 17, 2020

Closes #2899

By inspecting elements, the user-select with none seems to come from the body.

However, I don't think it cannot be removed or modified because all texts would be selected.
insomnia_body_select

The next level for CSS change would be for the GraphQL Explorer.
insomnia_graphql_explorer_select

Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks for raising a PR and explaining your process!

-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
Copy link
Contributor

Choose a reason for hiding this comment

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

Because this is an electron only app and we don't need to think about other browsers yet, so it should be safe to omit the -webkit and -moz styles, just keeping the regular user-select. 🙂

Suggested change
-webkit-user-select: text;
-moz-user-select: text;
user-select: text;
user-select: text;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the suggestion @develohpanda ! I just pushed the change.

@lykims lykims force-pushed the feature/graphql-explorer-select-text branch from 0213452 to a7b9bc0 Compare December 17, 2020 14:43
Copy link
Contributor

@develohpanda develohpanda left a comment

Choose a reason for hiding this comment

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

🎉

@develohpanda develohpanda merged commit e54f4e0 into Kong:develop Dec 17, 2020
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.

Feature Request: Copy Text In Schema Documentation Panel
2 participants