You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Arabic Site and TaxonomyPicker RTL mode for Suggestions and Select Term panel should work.
Steps to Reproduce
Just use Taxonomy picker on Arabic site
Screenshot of Select term in Arabic site (broken tree - wrong paddings and margins + Save cancel buttons should have margin between):
Screenshot of suggestions in Arabic site (should be at right side):
I suppose TaxonomyPicker.module.scss should have additional lines. I tried next to fix this (probably need more):
@VladNS90 You should probably look into upgrading to v3 of the controls since v2 soon will be deprecated. In v3 you will soon find the ModernTaxonomyPicker (should be available in the beta version already) and I just made a PR with some small changes that should make it work with RTL mode (#1041). The ModernTaxonomyPicker is not yet a full feature replacement for TaxonomyPicker but if you dont use any of the special features and just want a regular taxonomy picker you should be fine. Read more about the features here: #1014
@patrikhellgren Thank you for the advice. It looks better then current Taxonomy pecker. And somewhen I need to plan migration to v3.
But for now I cannot update to v3 because of complexity of my Solution and If it possible to extend Taxonomy picker for v2 (at least Term.js file) it will be enough for now
Css part I could handle on my own.
@VladNS90 - unfortunately v2 is deprecated. We do not maintain it anymore.
I totally understand the issue you're experiencing, but the only way to fix it from library standpoint is to upgrade to v3 and use Modern Taxonomy Picker.
Category
[ X ] Bug
Version
2.9.0
Expected
When using Arabic Site and TaxonomyPicker RTL mode for Suggestions and Select Term panel should work.
Steps to Reproduce
Just use Taxonomy picker on Arabic site
Screenshot of Select term in Arabic site (broken tree - wrong paddings and margins + Save cancel buttons should have margin between):
Screenshot of suggestions in Arabic site (should be at right side):
I suppose TaxonomyPicker.module.scss should have additional lines. I tried next to fix this (probably need more):
html[dir='rtl'] .termSuggestion { text-align: right; }
html[dir='rtl'] .termset { margin-left: 0; margin-right: 15px; }
html[dir='rtl'] .listItem img { margin-right: 0px; margin-left: 5px; }
4)'termEnabled', 'termDisabled', 'termNoTagging '
html[dir='rtl'] .termEnabled,
html[dir='rtl'] .termDisabled,html[dir='rtl'] .termNoTagging{ background-position: calc(100% - 30px); }
html[dir='rtl'] .term label>span { padding-left: 0; padding-right: 25px; }
Also Term.js script file contains next lines:
This should be changed to check if RTL used and set marginRight instead.
And one more point - Cancel and Save buttons - it should have margin between
Thanks!
Vladyslav
The text was updated successfully, but these errors were encountered: