Skip to content

Commit

Permalink
Fixed borders between input fields in date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Dec 16, 2023
1 parent 0671357 commit 59d1ffe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions css/80_app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,14 @@ a.hide-toggle {
}


/* Field - Date
------------------------------------------------------- */
.ideditor .form-field-input-date > input.date-main + input.date-main,
.ideditor .form-field-input-date > .combobox-caret + input.date-main {
border-left: 0;
}


/* Field - Address
------------------------------------------------------- */
.form-field-input-address {
Expand Down
8 changes: 4 additions & 4 deletions modules/ui/fields/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function uiFieldDate(field, context) {
yearInput = yearInput.enter()
.append('input')
.attr('type', 'number')
.attr('class', 'date-year')
.attr('class', 'date-main date-year')
.attr('id', field.domId)
.call(utilNoAuto)
.merge(yearInput);
Expand All @@ -134,23 +134,23 @@ export function uiFieldDate(field, context) {
eraInput = eraInput.enter()
.append('input')
.attr('type', 'text')
.attr('class', 'date-era')
.attr('class', 'date-main date-era')
.call(eraCombo)
.merge(eraInput);
break;
case 'month':
monthInput = monthInput.enter()
.append('input')
.attr('type', 'text')
.attr('class', 'date-month')
.attr('class', 'date-main date-month')
.call(monthCombo)
.merge(monthInput);
break;
case 'day':
dayInput = dayInput.enter()
.append('input')
.attr('type', 'number')
.attr('class', 'date-day')
.attr('class', 'date-main date-day')
.call(utilNoAuto)
.merge(dayInput);
break;
Expand Down

0 comments on commit 59d1ffe

Please sign in to comment.