webapp: Hiding/showing elements should not be modifying style attribute #1

Open
opened 2024-07-12 20:15:42 -04:00 by dakrk · 0 comments
Owner

Doing el.style.display = "block"; to show an element is a bad idea because not everything is a block, and doing it this way is inline CSS which overrides everything else. The new d-none class should instead be used, using the DOM HTMLElement classList add & remove methods.

Doing `el.style.display = "block";` to show an element is a bad idea because not everything is a block, and doing it this way is inline CSS which overrides everything else. The new `d-none` class should instead be used, using the DOM HTMLElement classList add & remove methods.
Elijah added the
enhancement
label 2024-07-14 16:16:12 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: computernewb/MSAgent-Chat#1
No description provided.