Skip to content

Commit

Permalink
Make click on OpenAPI property name selects the entire text (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse authored Mar 28, 2024
1 parent 5f1d82c commit d0ef225
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/DocumentView/OpenAPI/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,22 @@
@apply mt-3;
}

.openapi-schema-name {
/* To make double click on the property name select only the name,
we disable selection on the parent and re-enable it on the children. */
@apply select-none;
}

.openapi-schema-propertyname {
@apply font-medium text-base text-dark/10 dark:text-light/10;
@apply select-all font-medium text-base text-dark/10 dark:text-light/10;
}

.openapi-schema-required {
@apply font-normal text-yellow-600;
}

.openapi-schema-type {
@apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4;
@apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4 select-text;
}

.openapi-schema-type:only-child {
Expand Down

0 comments on commit d0ef225

Please sign in to comment.