Skip to content

Commit d0ef225

Browse files
authored
Make click on OpenAPI property name selects the entire text (GitbookIO#2249)
1 parent 5f1d82c commit d0ef225

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/DocumentView/OpenAPI/style.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,22 @@
106106
@apply mt-3;
107107
}
108108

109+
.openapi-schema-name {
110+
/* To make double click on the property name select only the name,
111+
we disable selection on the parent and re-enable it on the children. */
112+
@apply select-none;
113+
}
114+
109115
.openapi-schema-propertyname {
110-
@apply font-medium text-base text-dark/10 dark:text-light/10;
116+
@apply select-all font-medium text-base text-dark/10 dark:text-light/10;
111117
}
112118

113119
.openapi-schema-required {
114120
@apply font-normal text-yellow-600;
115121
}
116122

117123
.openapi-schema-type {
118-
@apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4;
124+
@apply font-mono ml-3 text-base text-dark-4/8 dark:text-light-4 select-text;
119125
}
120126

121127
.openapi-schema-type:only-child {

0 commit comments

Comments
 (0)