Skip to content

Commit dc66845

Browse files
authored
IBX-12334: Fixed styling of the Select translation panel (#2031)
1 parent bde912d commit dc66845

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/bundle/Resources/public/js/scripts/sidebar/btn/location.edit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
const checkedBtn = event.currentTarget;
5555
const languageCode = checkedBtn.value;
5656
const checkVersionDraftLink = Routing.generate('ibexa.version_draft.has_no_conflict', { contentId, languageCode, locationId });
57-
const activeLanguageItem = event.target.closest('.ibexa-instant-filter__group-item')?.querySelector('.ids-label');
58-
const allLanguageItems = form.querySelectorAll('.ibexa-instant-filter__group-item .ids-label');
57+
const activeLanguageItem = event.target.closest('.form-check')?.querySelector('.ids-choice-input-field__label');
58+
const allLanguageItems = form.querySelectorAll('.form-check .ids-choice-input-field__label');
5959
const submitBtn = form.querySelector('.ibexa-extra-actions__confirm-btn');
6060

6161
allLanguageItems.forEach((item) => {
62-
item.classList.remove('ids-label--active');
62+
item.classList.remove('ids-choice-input-field__label--active');
6363
});
6464

6565
fetch(checkVersionDraftLink, {
@@ -83,7 +83,7 @@
8383
}
8484

8585
submitBtn.disabled = false;
86-
activeLanguageItem?.classList.add('ids-label--active');
86+
activeLanguageItem?.classList.add('ids-choice-input-field__label--active');
8787
});
8888
};
8989
const attachEventsToEditActionsWidget = (container) => {

src/bundle/Resources/public/scss/_extra-actions.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
padding-left: 0;
140140
}
141141

142+
.ids-choice-input-field__label,
142143
.ids-label {
143144
@include edit-language-item;
144145
}
@@ -147,7 +148,7 @@
147148
margin: 0 0 calculateRem(30px) 0;
148149
}
149150

150-
.ibexa-input[type='radio'] {
151+
.form-check-input[type='radio'] {
151152
display: none;
152153
}
153154
}

src/bundle/Resources/public/scss/_translation-selector.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.ibexa-translation-selector {
66
.ibexa-instant-filter__group-item {
7-
.ibexa-btn {
7+
.ids-btn {
88
@include edit-language-item;
99

1010
display: block;

0 commit comments

Comments
 (0)