Skip to content

GraphQL Explorer - Make text selectable#2954

Merged
develohpanda merged 2 commits intoKong:developfrom
lykims:feature/graphql-explorer-select-text
Dec 17, 2020
Merged

GraphQL Explorer - Make text selectable#2954
develohpanda merged 2 commits intoKong:developfrom
lykims:feature/graphql-explorer-select-text

Conversation

@lykims
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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