Skip to content

Conversation

@Shreyanshi210205
Copy link
Contributor

@Shreyanshi210205 Shreyanshi210205 commented Oct 17, 2025

…ground color and border styles

Description

This PR addresses multiple UI and usability issues in the StrokeControl component and its associated Slider (from shadcn/ui).

Previously:
1.The stroke width slider was not visible due to styling and visibility conflicts in Slider.jsx.
2.The stroke preview circle (representing brush width) was also invisible or misaligned.
3.When the circle became visible, it caused the toolbar border to shift as its size increased.
4.The layout lacked proper responsiveness on different screen sizes.

1.Fixed visibility issues
-Updated Slider.jsx styles in the shadcn/ui layer to ensure the slider track and thumb are properly visible.
-Ensured the stroke preview circle is always visible with consistent contrast against the background.
2.Fixed layout shifting
-Wrapped the preview circle in a fixed-height container and used absolute positioning to prevent the parent border from resizing.

image

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

#21

Checklist

@Ayushivam22
Copy link
Collaborator

Thank you for your contribution!

We're hosting Opcode 2025, an open-source fest exclusively for college students, and we would love for you to be a part of it.

Website & Registration: opcode.gymkhana.iiitbh.ac.in

Join the Community: Be sure to join our Discord server to connect with other participants and stay up-to-date!

Important: To ensure your work is officially recognized on our fest leaderboard, we merge pull requests after you have registered. Please reply to this comment to let us know if you have registered or if you are not eligible to participate.

And great news – your contributions to this repository will also count towards Hacktoberfest!

Looking forward to seeing you at the fest!

@Shreyanshi210205
Copy link
Contributor Author

@Ayushivam22 please provide labels .

@Ayushivam22
Copy link
Collaborator

@Shreyanshi210205 Have you registered yourself on the Discord Opcode channel to enable automatic point tracking?

@Shreyanshi210205
Copy link
Contributor Author

@Ayushivam22 Yes I am registered .

@Ayushivam22 Ayushivam22 merged commit 3e654c3 into OPCODE-Open-Spring-Fest:main Oct 18, 2025
6 of 10 checks passed
@Shreyanshi210205 Shreyanshi210205 deleted the shreyanshi_slider branch October 19, 2025 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants