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
The Avatar font-size when embedded in Shellbar was changed.
In 1.20.x the embedded Avatar initials font-size was 0.75rem from Shellbar css.
In 1.24.x (and 2.3.x) the embedded Avatar initials uses the Avatar's font-size (XS for 1rem).
This change in the font-size makes a number of two-letter initials trigger the fallback icon.
Before, only "W" was problematic, and some 3-letter combinations worked.
Now, "M" is also problematic, others like "O", "D", "Q", "U", "G" can be more than half the available space, and 3-letter combinations require two "I"s to work.
Affected Component
ui5-shellbar
Expected Behaviour
Reduce the font-size for XS a bit so more of the 2 letter scenarios are visible.
Or dynamically subtract 1px from the font-size until it fits.
Isolated Example
No response
Steps to Reproduce
No response
Log Output, Stack Trace or Screenshots
No response
Priority
Low
UI5 Web Components Version
1.24.8
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
SuccessFactors
Declaration
I’m not disclosing any internal or sensitive information.
The text was updated successfully, but these errors were encountered:
Problem: Some initials with wide characters are resulting in fallback
icon.
Solution: We scale down font size of the initials until they fit in the
avatar.
Fixes: SAP#10217
Bug Description
The Avatar font-size when embedded in Shellbar was changed.
In 1.20.x the embedded Avatar initials font-size was 0.75rem from Shellbar css.
In 1.24.x (and 2.3.x) the embedded Avatar initials uses the Avatar's font-size (XS for 1rem).
This change in the font-size makes a number of two-letter initials trigger the fallback icon.
Before, only "W" was problematic, and some 3-letter combinations worked.
Now, "M" is also problematic, others like "O", "D", "Q", "U", "G" can be more than half the available space, and 3-letter combinations require two "I"s to work.
Affected Component
ui5-shellbar
Expected Behaviour
Reduce the font-size for XS a bit so more of the 2 letter scenarios are visible.
Or dynamically subtract 1px from the font-size until it fits.
Isolated Example
No response
Steps to Reproduce
No response
Log Output, Stack Trace or Screenshots
No response
Priority
Low
UI5 Web Components Version
1.24.8
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
SuccessFactors
Declaration
The text was updated successfully, but these errors were encountered: