Skip to content

Commit 87f7e93

Browse files
committed
Playground: add url format example and pdate css
1 parent f649426 commit 87f7e93

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

docs/src/demos.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,14 @@ const DEMOS = [
347347
email: {type: 'string', format: 'email'},
348348
password: {type: 'string', format: 'password'},
349349
colour: {type: 'string', format: 'color'},
350+
url: {type: 'string', format: 'uri', 'title': 'URL'},
350351
}
352+
},
353+
data: {
354+
'email': 'john@example.com',
355+
'password': 'correcthorsebatterystaple',
356+
'colour': '#ffff00',
357+
'url': 'http://example.com'
351358
}
352359
},
353360

docs/static/css/docs.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -742,36 +742,31 @@ button.rjf-collapse-button {
742742
text-overflow: ellipsis;
743743
white-space: nowrap;
744744
}
745-
.rjf-autocomplete-field {
745+
.rjf-autocomplete-field,
746+
.rjf-url-fild {
746747
position: relative;
747748
}
748749
.rjf-autocomplete-field-input {
749750
cursor: pointer;
750751
padding-right: 40px !important;
751752
background-color: #fff !important;
752753
}
753-
.rjf-autocomplete-field-clear-button {
754+
.rjf-autocomplete-field-clear-button,
755+
.rjf-url-field-link {
754756
position: absolute;
755757
right: 6px;
756-
top: 5px;
758+
top: 2px;
757759
line-height: 1;
758760
padding: 1px 2px;
759761
background: transparent;
760-
color: var(--link-fg);
761762
border: 0;
762763
z-index: 10;
763764
cursor: pointer;
764765
}
765766
.rjf-autocomplete-field.has-label .rjf-autocomplete-field-clear-button {
766-
top: 5px;
767-
}
768-
.rjf-autocomplete-field-clear-button:hover {
769-
background-color: #eee;
770-
color: var(--link-hover-color);
771-
}
772-
.rjf-autocomplete-field-clear-button > .rjf-icon {
773-
display: none;
767+
top: 2px;
774768
}
769+
.rjf-autocomplete-field-clear-button > .rjf-icon,
775770
.rjf-autocomplete-field-clear-button > span {
776771
vertical-align: middle;
777772
}
@@ -841,6 +836,10 @@ button.rjf-collapse-button {
841836
.rjf-autocomplete-field-option.disabled:focus {
842837
background-color: transparent;
843838
}
839+
.rjf-url-field .rjf-url-field-link,
840+
.rjf-url-field.has-label .rjf-url-field-link {
841+
top: 12px;
842+
}
844843
.rjf-loader {
845844
width: 32px;
846845
height: 32px;

0 commit comments

Comments
 (0)