UX: Fallback to regular title if screen-reader title is unavailable (#15048)
c401d641
introduced a new translation key for auth providers, and provided new strings for core providers. However, not all plugins have added this string. This commit makes the screenreader title fallback to the regular title in those cases.
This commit is contained in:
parent
948a1523ea
commit
c749b41163
|
@ -15,7 +15,10 @@ const LoginMethod = EmberObject.extend({
|
|||
|
||||
@discourseComputed
|
||||
screenReaderTitle() {
|
||||
return this.title_override || I18n.t(`login.${this.name}.sr_title`);
|
||||
return (
|
||||
this.title_override ||
|
||||
I18n.t(`login.${this.name}.sr_title`, { defaultValue: this.title })
|
||||
);
|
||||
},
|
||||
|
||||
@discourseComputed
|
||||
|
|
Loading…
Reference in New Issue