Skip to content
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

Link component takes the full width of the parent element #47

Closed
shakyapeiris opened this issue Sep 28, 2021 · 1 comment
Closed

Link component takes the full width of the parent element #47

shakyapeiris opened this issue Sep 28, 2021 · 1 comment

Comments

@shakyapeiris
Copy link
Member

shakyapeiris commented Sep 28, 2021

Describe the bug
In the individual task page (eg: https://bits.acicts.lk/task/CA02), the button function is applied to the parent element (a tag/Link component) of the button element. Because of that even when I click on a different place in x axis (but in the same y position), it redirects user to the tasks page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://bits.acicts.lk/task/CA02
  2. Click on the parent element of the back button. (a tag/Link component)

Expected behavior
Nothing was expected to happen. But when I mistakenly click on that region, it redirected me to the task page.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 94.0

Additional context
You can fix this issue by setting the width of the Link component (a tag) to min-content

@shakyapeiris shakyapeiris changed the title Back button takes the full width of the parent element Link component takes the full width of the parent element Sep 28, 2021
@shakyapeiris
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants