fix: correct dropdown arrow placement for Thrasos on Safari (#8017)

This commit is contained in:
Mike Harvey
2024-04-08 17:56:36 -04:00
committed by GitHub
parent 9e05d69d2a
commit e2df0fc288

View File

@@ -229,6 +229,9 @@ export class FieldDropdown extends Field<string> {
: ' ' + FieldDropdown.ARROW_CHAR,
),
);
if (this.getConstants()!.FIELD_TEXT_BASELINE_CENTER) {
this.arrow.setAttribute('dominant-baseline', 'central');
}
if (this.getSourceBlock()?.RTL) {
this.getTextElement().insertBefore(this.arrow, this.textContent_);
} else {