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

Styling improvements for [sectionId] pages #233

Merged
merged 7 commits into from
Jul 3, 2024
Merged

Conversation

dankimberley
Copy link
Collaborator

@dankimberley dankimberley commented Jun 27, 2024

Section Styling
  • tailwind colours
Screenshot 2024-06-27 at 15 23 28

components/content/LearningOutcomes.tsx Outdated Show resolved Hide resolved
components/content/LearningOutcomes.tsx Outdated Show resolved Hide resolved
@@ -59,7 +63,7 @@ export const LinkedSection = (sectionLink: SectionLink) => {
<Tooltip title={tooltipTitle}>
<a href={`${sectionLink.url}`} className={`pointer-events-auto text-gray-600 hover:text-gray-500 opacity-50`}>
<div
className={`group rounded-md border-2 hover:border-4 ${borderColor} h-[55px] w-[150px] text-sm`}
className={`group rounded-md border-2 hover:border-4 ${borderColor} ${calcAnchorHeight} w-[150px] text-sm`}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoyingly this breaks whatever I had to do to get them to not move when the hover border width changed:

old
versus new:

new

I have absolutely no idea why? There might be an easy fix but it could certainly be fixed using box shadow rather than border? well I am never certain about anything when it comes to frontend.

BUT, we will spin this into another issue cause I would rather have them move slightly than the current text-overflow that we have.

@alasdairwilson
Copy link
Collaborator

Hey, great work 👍 , I have two minor changes regarding the coloring of elements and one thing that we will leave for another issue (the movement due to border size changes.

Other than that, should be good to go.

@dankimberley
Copy link
Collaborator Author

Hey, great work 👍 , I have two minor changes regarding the coloring of elements and one thing that we will leave for another issue (the movement due to border size changes.

Other than that, should be good to go.

Hey, great work 👍 , I have two minor changes regarding the coloring of elements and one thing that we will leave for another issue (the movement due to border size changes.

Other than that, should be good to go.

Thanks for this! I've committed those changes. Yeah border behaviour definitely not ideal - I'll have a look at the border movement.

Copy link
Collaborator

@alasdairwilson alasdairwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks @dankimberley

@alasdairwilson
Copy link
Collaborator

Thanks for this! I've committed those changes. Yeah border behaviour definitely not ideal - I'll have a look at the border movement.

Great, I have made an issue for that here #234

@alasdairwilson alasdairwilson merged commit d9cbca4 into main Jul 3, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants