-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Settings cards should use <a>
instead of <div>
#7356
Comments
@Bonapara, I would like to work on this issue. |
@sachinks07 Thanks for the interest! |
These cards are wrapped inside tags because they use an UndecoratedLink component with an href attribute. However, in the field type settings cards, there's no href or navigation link to trigger on click. Instead, they use onClick event handlers for interactivity. |
Can we either use the |
@ehconitin Actually I just found out we have already have the way to pass the field type through the url so we should be able to change the onClick to a proper link: https://github.com/twentyhq/twenty/blob/main/packages/twenty-front/src/modules/views/view-picker/hooks/useGetAvailableFieldsForKanban.ts#L38 As part of the issue, could you please also:
|
looking into it! |
We could also try to fix this one in the same PR: #6967 |
@Bonapara yes, i will try! |
@FelixMalfait |
@ehconitin yes we should remove entirely the code related to step1, this step was confusing and we have dropped it, it’s not part of the flow anymore. Thanks! |
If we fix it in this PR, yes! Can you mention it in your PR so it closes both issues? |
Yup! |
fixes twentyhq#7356 fixes twentyhq#6967 fixes twentyhq#7102 fixes twentyhq#7121 fixes twentyhq#7505
Current Behavior
The field type Settings cards use a
div
container.This concerns the
field type
settings cards, but not theemails
andcalendar
settings cards in Accounts (which use an<a>
tag), even though they share the same component.Desired Behavior
They should use an
<a></a>
container for accessibility. Design and behavior should remain the same.Figma
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=35741-193252&node-type=frame&t=YZppWDu8cDmzxDmJ-11
The text was updated successfully, but these errors were encountered: