From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [yew-devel] [RFC PATCH yew-widget-toolkit-assets] flip font-awesome icons for rtl text direction
Date: Tue, 23 Sep 2025 15:11:30 +0200 [thread overview]
Message-ID: <20250923131429.3082622-1-d.csapak@proxmox.com> (raw)
when using a language that sets the text direction to RTL, font-awesome
icons that have left or right in the name are pointing in the wrong
direction, so flip them.
This happens for example in menus, back button of the material app,
list tiles where icons like 'chevron-right' are used, etc.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
sending as rfc because i'm not sure this is the right approach.
alternatively we could create our own classes for every font-awesome
class that ends with -left/-right and call them -start/-end and
have only them flip in a rtl setting
Advantage would be that users could still use the 'left' and 'right'
variants if they need/want them.
scss/_miscellaneous.scss | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scss/_miscellaneous.scss b/scss/_miscellaneous.scss
index c0dfafe..05dfd61 100644
--- a/scss/_miscellaneous.scss
+++ b/scss/_miscellaneous.scss
@@ -156,3 +156,11 @@ a:focus-within, a:hover {
.pwt-pointer {
cursor: pointer;
}
+
+/* rtl inversions of icons */
+.fa[class*="-left"],
+.fa[class*="-right"] {
+ &:dir(rtl) {
+ transform: scaleX(-1);
+ }
+}
--
2.47.3
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
next reply other threads:[~2025-09-23 13:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-23 13:11 Dominik Csapak [this message]
2025-09-23 14:58 ` Shannon Sterz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250923131429.3082622-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.