question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird RTL behavior on some components

See original GitHub issue

Hello, I wanted to test the RTL mode, and I noticed some weird behavior on some components. for example the QBadge component, in RTL mode there is a conflicting CSS class application :

[dir="rtl"] .q-badge--floating {
    left: -3px;
}
[dir="ltr"] .q-badge--floating {
    right: -3px;
}

which gives this result : screen

quasar transforme the “right” property into “left” but to keep both. (https://github.com/quasarframework/quasar/blob/dev/ui/src/components/badge/QBadge.sass)

Thank you very much for your tremendous work .

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
pdanpdancommented, Aug 26, 2021

Yes, as I suspected. The css is not meant to be toggled RTL/LTR on a per element basis Please change the language pack in quasar to one that uses RTL, and remove the dir attributes in your html.

0reactions
pdanpdancommented, Aug 26, 2021

yes if you need rtl set by hand you must set it on the html tag, and it must be set after quasar initializes (or else it will be changed back to ltr if the lang is ltr)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weird behaviour on joining mixed right-to-left ... - Stack Overflow
When you display that string, and the BIDI algorithm has to decide where all the characters go. The first character (ז) is a...
Read more >
rtl TextInput multiline weird behavior · Issue #6125 - GitHub
I suggest that when <Admin> receives a theme, it checks if it's a theme object or the result of createMuiTheme (not sure how),...
Read more >
Problem with RTL and Circle mode - Discussions - diydrones
Since RTL worked really fine in the maiden flight, I engage RTL. Seems to work, plane is doing it first turn back towards...
Read more >
vhdl - Discrepancy between RTL schematic and Behavioral ...
I'm having a strange issue with a simple Vivado (2015.3) VHDL simulation. This code: library ieee; use ieee.std_logic_1164.all; entity pulse is ...
Read more >
Building RTL-Aware Web Apps & Websites: Part 1
On the web, as we said earlier, the term Right-To-Left indicates more than just a script for writing. It stands for all facets...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found