• Robert Knight's avatar
    Fix alignment of replies in RTL languages · 14180759
    Robert Knight authored
    `<li>` elements have a default style of `text-align: match-parent`. This
    resulted in a computed `text-align: left` style for paragraphs in replies, which
    have an `<li>` ancestor. As a result replies written in RTL languages (eg.
    Hebrew) were rendered left-to-right, instead of right-to-left as intended. Fix
    this by adding a `text-align: start` on the `<li>`. This sets the alignment for
    descendants to match the computed `direction` property. The `direction` for
    replies is computed based on their content due to a `dir="auto"` attribute on
    `StyledText` components.
    
    Fixes https://github.com/hypothesis/client/issues/4705
    14180759
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...