Toggle button not fully visible on Firefox
Closed this issue ยท 6 comments
Hi! I'm Andrew and I'm new to contributing and coding in general so please let me know if I have missed some obvious or common detail. Thank you.
- Bug description below:
When using the toggle button feature on Mozilla Firefox, the toggle button is partly hidden along the left/right padding at page-load. Once the user clicks on the toggle button, the full button becomes visible.
- Partly hidden - Firefox 87 (desktop)
- Partly hidden - Firefox 88 (android)
- Normal - Brave (android)
- Normal - Chrome (android & desktop)
- Expected Behavior:
The toggle initial view should be same on both Firefox and Chrome.
- Screenshots:
Here is a JS Fiddle showing the problem: LINK
- Additional:
I tried setting the padding from 10px to 0px (in the css input), but this caused the white middle button to be incorrectly positioned.
I am thinking maybe the way to fix this is to look in the .less file, adjust the padding rules for the "input checkbox", adjust the white button animations, recompile, and test in various browsers.
Do you guys have any thoughts? Or opinions on how to approach this?
I'd like to work on this, but not cause extra problems... this would be my first real contribution to any project.
Hi, @andypants888,
Thanks for opening an issue ๐ your issue will be seen by maintainers soon.
Contributors ๐งโ๐คโ๐ง like you make the open source community ๐ such an amazing place to learn ๐ , inspire ๐ผ, and create ๐จ .
We will investigate ๐ and get back to you as soon as possible ๐ .
Just make sure you have given us sufficient information โน๏ธ.
By that time enjoy this joke ๐ , hope you like it ๐
Why did the Python data scientist get arrested at customs?
She was caught trying to import pandas!
Use this action on your projects. Use memes on issues action instead.
Hello Andrew. Sorry for the late delay and thank you for your interest in contributing to sButtons!
That was a nice catch. I'll assign you to this issue. Let me know if you need any help while working on this.
Hi shahed!
No worries at all. I've been working on the issue this week and I've been getting some trouble from the lessc compiler (maybe prettier too)
I planned to make 3 changes to 2 files, in toggle.less and variables.less
When I run npm start, my changes to the .less files are not compiling as expected. I have tried running npm start before making the changes, but then prettier will loop repeatedly without stopping.
My main problems are:
-
lessc is causing unexpected changes in slides 4 & 6 to the hover in the snake-btn, and to the font-face src version.
-
after running prettier, my git shows that 89/91 files have been modified, but no text inside the files have actually been modified.
Again, I've put the screenshots in the link below, and if you can offer any advice, I'd be very grateful.
SCREENSHOTS HERE: google slides link
@shahednasser reporting a stale issue.
Hi @andypants888 after making changes to any less file, you just need to run npm run compile
and commit the changes.
@shahednasser reporting a stale issue.