-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue for RTL supporting. #97
Comments
If you are first time to use tacking issue check our previous practice here |
breadcrumb |
@07akioni 很多样式用margin写的,建议改为flex的gap,这样rtl就不用额外转换样式了 |
How to enable RTL for these components ? |
add button component to tasks too, when use icon in button, |
when enabling selection in columns for NDatableTable, the options does not show when the page direction is RTL. |
Overview
RTL(Right to Left) support is a very import feature for the component library. However it'll take great efforts to fulfill the feature since all of the components need to implement extra styles, thus we need your help to achieve the goal.
We've add experimental RTL feature for
n-button
,n-tag
,n-page-header
andn-card
. If you are interested in contributing to the RTL feature, please reference those components.You can find the example in the following files.
Tech Details
Here are some discussion about tech detail about implementation.
In general, Naive UI has an internal
useRtl
composable to mount & update rtl style on demand. It accepts RTL styles passed fromn-config-provider
and takes adventage of the style.The component that supports RTL has a style file in
component-name/styles/rtl.ts
, which exports{ name: 'ComponentName', style: CssRenderStyle }
.Components
Here are some components in need RTL support.If you intresting in it,feel free to commont.We will convert it to issue for you,then you can work on it.
affix
alert
anchor
auto-complete
back-top
breadcrumb
calendar
card
caroulsel
cascader
checkbox
code
collapse
collapse-transition
color-piker
data-table
date-piker
description
dailog
divider
drawer
dropdown
dynamic-input
dynamic-tags
element
ellipsis
empty
form
gradient-text
input
input-number
layout
list
loading-bar
log
menu
mention
message
modal
notification
page-header
pagination
popconfirm
popover
popselect
progress
radio
rate
result
scrollbar
select
skeleton
slider
space
spin
statistic
steps
switch
table
tabs
tag
thing
time
time-picker
timeline
tooltip
transfer
tree
tree-select
typography
upload
watermark
The text was updated successfully, but these errors were encountered: