How to Create Your Own Context Menu with Icons Using HTML, CSS & JavaScript

  Рет қаралды 3,024

dcode

dcode

Күн бұрын

In today's video I'll show you how easy it is to create your own custom context menu using HTML, CSS & JavaScript. This one even has icons for a clean look!
Ionicons Library:
ionic.io/ionicons
🏫 My Udemy Courses - www.udemy.com/...
🎨 Download my VS Code theme - marketplace.vi...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #webdev #javascript

Пікірлер: 11
@isaacwhiz
@isaacwhiz Ай бұрын
You such a genius, no fluff straight to point. Probably your courses should be nice.
@AndreasLepsuch
@AndreasLepsuch 5 ай бұрын
Great content. To put the id and EventListener at the list-item is better, because at the span-item the user is dependend of the length of the word - as you mentioned.
@kerrykreiter445
@kerrykreiter445 8 ай бұрын
Very slick and super useful! Loved the font-size using em refresher. Always enjoy the bonus content!!
@clevermissfox
@clevermissfox 7 ай бұрын
Great content! Gotta tell you, it’s so so hard to find frontEnd videos that even mention accessibility or implement it into the markup , they are extremely few and far bw. I bet if you started including some best practices for accessibility on your projects with interaction and mentioned “how to create an accessible X” it would help drive users to you looking for help implementing a11y. Accordions and drop downs are about the only videos I can find mention of accessibility.
@ScriptRaccoon
@ScriptRaccoon 7 ай бұрын
On a website you should never, never, never override the default behavior of the context menu and other standard actions. This is a bad UX and will also make your website inaccessible. You literally disable their actions. When you want to have a custom context menu, you can for example offer a shortcut for that, and explain that shortcut as well. Keep the regular one. Alternatively, just place a button somewhere that opens the menu (can always be at a fixed position then, which also simplifies things). The button also has the advantage of being accessible via keyboard then. You can even use the new popover API for displaying the menu without any JavaScript by the way. JavaScript allows us to do many things, but not all of them are good for the user. I am not against showing this technique of a custom context menu in a video, but it should at least mention its limitations and specific use cases (say, desktop apps developed via JavaScript / Electron).
@TomasMisura
@TomasMisura 8 ай бұрын
Great video, context menu inspiration is always welcome :)
@DarioBasset
@DarioBasset 8 ай бұрын
Hi Dom. I would be interested to know you development strategy for the future. I mean, could you tell us what kind of language and libraries or frameworks would you use to start a medium to large project by yourself or in team? Web components? Svelte? And the server part? Can you make a video on that?
@Tesfamichael.G
@Tesfamichael.G 8 ай бұрын
Your videos are very very help-full.
@crazyingenieur3277
@crazyingenieur3277 8 ай бұрын
Great video!
@umbertopolanco4159
@umbertopolanco4159 3 ай бұрын
how can I get this to overlay over a threejs scene?
@SpaceWise616
@SpaceWise616 8 ай бұрын
First view
How to Animate CSS Properties with JavaScript
10:24
dcode
Рет қаралды 4 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 474 М.
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 17 МЛН
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,3 МЛН
This New Angular Release Is Wild
5:53
Theo - t3․gg
Рет қаралды 101 М.
Learn CSS icons in 8 minutes! 🐤
8:33
Bro Code
Рет қаралды 34 М.
Creating Web Components - With Special Guest Dave Rupert!
1:33:59
Kevin Powell
Рет қаралды 42 М.
How To Create Advanced CSS Dropdown Menus
16:09
Web Dev Simplified
Рет қаралды 478 М.