Tirius
KPCKevin Powell - Community
•Created by snxxwyy on 7/6/2024 in #front-end
Input design method
I missed that author need to include "cm" text, 100% input width does not work here then.
Make input take as much space as possible so it will be easier to click on it, remove
input
border and use .input-group
border to indicate focus state using :focus-within
selector.
But for something more reliable and reusable, you should change you class names/css selectors to something more isolated. And you can also make it as web components if you want to easy reuse it and at the same time keep it in vanilla ecosystem (example - https://codepen.io/The-Tirius/pen/ExBYzRq) or better use a proper js framework.15 replies
KPCKevin Powell - Community
•Created by snxxwyy on 7/6/2024 in #front-end
Input design method
Look carefully, input-group have a padding that prevent input from taking all the width
15 replies
KPCKevin Powell - Community
•Created by snxxwyy on 7/6/2024 in #front-end
Input design method
There is many things that can be improved about it, it's depends on how far you would like to go. But for the bare minimum I'll recomend you to make input size equal to wrapper size, so when you focus you don't have that double border effect.
15 replies
KPCKevin Powell - Community
•Created by 𝚓𝚎𝚛𝚎𝚖𝚢 𝚙𝚊𝚛𝚔𝚎𝚛 on 6/17/2024 in #front-end
Are CSS Variables Bad?
You definitely shouldn't be afraid to use them.
CSS Variables are great, and can do most of the job that CSS preprocessor do.
They also give easy ability to override styles of module/plugins/components if they are using them.
They are super handly for theming.
Idealy I try to use both, Less(CSS preprocessor) variables for static part and CSS variables for dynamic part. You probably can use PHP instead of CSS preprocessor if you comfortable with it, but you still want to minimize your CSS somehow..
10 replies
KPCKevin Powell - Community
•Created by Vipe on 6/16/2024 in #front-end
Struggling to display titles from api (RapidAPI)
Fix this first
21 replies
KPCKevin Powell - Community
•Created by Vipe on 6/16/2024 in #front-end
Struggling to display titles from api (RapidAPI)
You are using
router-link
but you have not install vue-router
21 replies
Testing custom Module.
I found out that you can resolve
'#build'
imports by adding resolve
option to vitest.config
So with that setup I was able to test components using @vue/test-utils
, but it was needed to remove composable and use direct import of options in components import moduleOptions from '#build/ui.options.mjs';
3 replies