-
Notifications
You must be signed in to change notification settings - Fork 48
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 hover animation to eventList #4998
base: master
Are you sure you want to change the base?
Conversation
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.
Very nice work! Looks great 🔥
I forgot to mention it, but you don't actually need to use TypeScript in order to track if an element is hovered or not. You can use the CSS selector :hover
instead!
This comment was marked as off-topic.
This comment was marked as off-topic.
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.
I have wanted this to be a link for so long!😍 Very nice!!
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
New Changes: Skjermopptak.2024-09-27.kl.12.17.15.mov |
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.
Awesome!
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.
Looks very good!
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.
Looking better!
app/components/EventItem/styles.css
Outdated
.eventItem:hover .companyLogo img { | ||
border-radius: var(--border-radius-sm); | ||
} |
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.
This feels off - why are we adding border-radius to the images as well?
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.
I tried both with and without, but personally felt with felt more natural. No other reason than that
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.
You don't have to fix this now in this PR, but it would be nice if you did the same to the other event item types 😍
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.
I agree I have already started working on it!
New additions to the page where the hover effect has been implemented: Profile page: Skjermopptak.2024-10-02.kl.18.53.46.movAuthenticated front-page: Skjermopptak.2024-10-02.kl.18.55.40.mov |
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.
LGTM.
In the future it could be nice with a standardized component for a link with this effect. But this is good for now!
…bapp into better-show-arrangementer
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.
Huge improvement!
app/components/EventItem/styles.css
Outdated
} | ||
|
||
.eventItem:hover { | ||
background-color: var(--additive-background); | ||
border-radius: var(--border-radius-sm); | ||
} |
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.
} | |
.eventItem:hover { | |
background-color: var(--additive-background); | |
border-radius: var(--border-radius-sm); | |
} | |
&:hover { | |
background-color: var(--additive-background); | |
border-radius: var(--border-radius-sm); | |
} | |
} |
Use &:hover
nested inside the class to add hover styling to the same classname:)
app/components/EventItem/styles.css
Outdated
|
||
.eventItem:hover { | ||
background-color: var(--additive-background); | ||
border-radius: var(--border-radius-sm); |
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.
Joblistings use --border-radius-lg
. I would love for this to be consistant with that
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.
I also removed the radius from the left side
It is necessary when the bordrer radius is that big
We should add this to articles and meetings too, preferably with a shared component to ensure consistency. But I think this is good now, and that can be done in a separate PR:) |
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.
Awesome
Remember to squash merge all the commits |
Description
Added a hover effect over the event items in eventlist
Result
Before:
Skjermopptak.2024-09-25.kl.21.48.07.mov
After:
Skjermopptak.2024-09-25.kl.21.51.06.mov
Testing
Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.
Resolves ABA-1084