-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix: Fix underline issue for login and sign up buttons #190
Fix: Fix underline issue for login and sign up buttons #190
Conversation
Hello there!👋 Welcome to the project!💖 Thank you and congrats🎉 for opening your first pull request.✨ AnitaB.org is an inclusive community, committed to creating a safe and positive environment.🌸Please adhere to our Code of Conduct and Contribution Guidelines.🙌.We will get back to you as soon as we can.😄 Feel free to join us on AnitaB.org Open Source Zulip Community.💖 We have different streams for each active repository for discussions.✨ Hope you have a great time there!😄 |
src/login/Login.jsx
Outdated
@@ -92,7 +92,13 @@ export default function Login() { | |||
</div> | |||
<div className="row button-group"> | |||
<div className="col"> | |||
<a className="btn btn-primary" id="registerbtn" href="/register" role="button">Sign Up</a> | |||
<Link | |||
to="/register" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove unnecessary changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review this @nlok5923 , but I think it is better to use Link instead of anchor tags to navigate to some other route, what's your view @mtreacy002 ma'am, should I revert this change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sachinsom93 @nlok5923 It is better to use Link
in react
as anchor tags trigger a page refresh which would reset the application states whereas the Link
and Navlink
of react-router doesn't trigger a page refresh. In single page apps with react
, it is better to use Link
from react-router
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nlok5923 Just as an extra opinion, I agree with @sachinsom93 and @Rahulm2310 on the use of Link
tags in place of a
in React for the same reasons specified above. Generally speaking, the Link
tags are better placed for in-app navigation(relative urls) and the a
tags for external links(absolute urls).
src/register/Register.jsx
Outdated
@@ -254,7 +254,13 @@ export default function Register() { | |||
</div> | |||
<div className="row button-group"> | |||
<div className="col"> | |||
<a className="btn btn-primary" id="loginbtn" href="/login" role="button">Login</a> | |||
<Link | |||
to="/login" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer to the comments and also i think you should not compare package-lock.json what's your view @mtreacy002 ma'am.
Body: Text underline on the Login and Sign Up(blue) buttons(ISSUE anitab-org#177)
@sachinsom93 Please remove package-lock.json from the commit as it has unnecessary changes which need not to be pushed. |
@sachinsom93 , can you please give us an update on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sachinsom93 , as per @Rahulm2310 suggested, can you please remove this package-lock.json from the commit (not to delete it from your local)?
@mtreacy002 I will do it as soon as possible. |
@sachinsom93 Can you please share updates on your progress? |
package.json
Outdated
@@ -12,7 +12,7 @@ | |||
"react": "^16.13.1", | |||
"react-dom": "^16.13.1", | |||
"react-router-dom": "^5.2.0", | |||
"react-scripts": "^3.4.3" | |||
"react-scripts": "^4.0.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this update needed, @sachinsom93 ? Do you have any reason why we need this? This is also the reason why the package-lock.json is changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtreacy002 , I didn't update it manually, it got updated when I use "npm install" at the time of project setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sachinsom93 We already have an issue open for updating the react-scripts version (#194). So, please revert these changes to the package.json and package-lock.json here.
114736e
to
fecfd31
Compare
This reverts commit 2d03ae5.
@sachinsom93 you were requested to not include package-lock.json in the commit (not to delete package-lock.json). Also now I am unable to see your changes to the buttons. The earlier changes you made to the buttons were correct. We just wanted you to not push unnecessary changes ( made to package.json and package-lock.json). If you have any doubts, then please ask. |
@sachinsom93 , can you please give us an update on this? |
@mtreacy002, sorry for being inactive, I tried to revert the changes but it didn't work. So, I am going to create new pr for the same. |
@sachinsom93 you can make a new PR |
Description
Removed the unnecessary underlines under login and sign Up buttons
Fixes #177
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Checklist:
Code/Quality Assurance Only