-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add "auto" value to KFixedGridItem/KGridItem's "alignment" prop #268
Comments
Hey! Can I work on this issue? |
Hi @BabyElias, yes, thank you |
'auto'
value to KFixedGridItem
/KGridItem
's alignment
prop
Hey! |
hey @AlexVelezLl since there is no one assigned rn can i work on this issue? |
Hey @lokesh-sagi125! For sure! I will assign this to you. Please feel free to ask any question if needed 🤗. |
hey @AlexVelezLl i went through the code for this issue and feel like the mention issue has already been dealt with, it is accepting the auto value from the common.js file, |
@lokesh-sagi125 I am not sure I can understand exactly what you mean. Are you saying that this:
already works? |
yes @MisRob when i tested it in playground and inspected it , there was no text-align being set and the div is being set |
this was the acceptance criteria of the issue right? |
Thanks for checking this @lokesh-sagi125. Yes, it seems it already works as expected. Let me confirm some time later this week and we can probably close the issue then. |
sure @MisRob |
@lokesh-sagi125 I confirm this has been resolved already in c85e4d8 so will close the issue. Thank you for checking on this, either it was done after I opened the issue and we didn't link, or I missed it. |
glad to know it was fixed:) |
Product
Kolibri
Desired behavior
Allow
'auto'
value inKFixedGridItem
/KGridItem
'salignment
prop and whenalignment
is'auto'
, do not settext-align
(like it happens whenalignment
is'right'
,'center'
,'left'
) but instead setdir=auto
on the grid item element.Current behavior
text-align
is set on grid items all the time. Even when we setdir=auto
onKFixedGridItem
/KGridItem
, it doesn't work properly because of conflicting withtext-align
defined in the grid item component, and we need to use a workaround like for example unsettingtext-align
here.The Value Add
No hacks will be needed anymore to make automatic directionality work for content in grid items which means that chances that accessibility works as expected will be higher in regards to
dir=auto
.Comments
Related Slack thread
The text was updated successfully, but these errors were encountered: