Post

So, today I built `<calc-input>`. It’s a custom input element that accepts mathematical formulas — such as 2 + 3 or (2 + 3) * 4 — and automatically toggles between showing the formula on focus and the calculated result on blur. → brm.us/calc-input

Bramus@bram.us

Oh no. I managed to nerd snipe myself into Yet Another Side Project™ … again. Noooooo. #TooManyIdeas

The Light DOM approach keeps native form submission, but the formula/result swap seems worth an accessibility check. Are both inputs consistently labelled, and can screen-reader users review the calculated value without losing the original formula context?

Oh, that’s great feedback! Let me try and think on how to fix it properly …

0 reposts0 likes

No replies yet.