Skip to content

Fix misplaced form error tooltip#2707

Merged
janno42 merged 3 commits into
e-valuation:mainfrom
geromequa:2646-form-error-tooltip-placement
Jun 8, 2026
Merged

Fix misplaced form error tooltip#2707
janno42 merged 3 commits into
e-valuation:mainfrom
geromequa:2646-form-error-tooltip-placement

Conversation

@geromequa

Copy link
Copy Markdown
Collaborator

Closes #2646. Removed height attribute was introduced here.

Comment thread evap/static/scss/components/_forms.scss Outdated
Comment thread evap/static/scss/components/_forms.scss Outdated
Comment on lines 13 to 16
// place tooltip for tomselect based on form-element height
.tomselected {
height: 38px;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works for me for now, but I think we're working around a TomSelect bug here: The browser, understandably, renders the information popup relative the the select HTML element that has the required attribute. Tomselect makes this select element 0x0-sized and invisible. They should do something to make the browser tooltip show at the correct position, we shouldn't have to fix this.

It is also broken on their example page: https://tom-select.js.org/examples/validation/

Can we file an issue with them about this, and link it here, to make it clear that this is a workaround for a tomselect bug, not actual styling we want to apply?

(Side note @janno42: What do we think about their bootstrap form error display mechanism for form validation, do we like it? See "Bootstrap" here)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Can we add a short comment in code referencing this issue?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bootstrap error display would be even nicer - because it would be consistent with the other fields.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created #2737, so that this can be implemented in future.

@niklasmohrin niklasmohrin removed their request for review May 1, 2026 21:42
@Kakadus Kakadus removed their request for review May 12, 2026 08:45

@janno42 janno42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good :)

@janno42 janno42 merged commit e64c795 into e-valuation:main Jun 8, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Misplaced form error tooltip

3 participants