tooltips showing above instead of right for browse properties #102
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gtfs.zone/coloring-book#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tailwind v4 statically scans source files for complete class name strings to decide which CSS to emit. The Fares phase refactored
renderFieldLabelContentto accept atooltipDirectionparameter and emittooltip-${tooltipDirection}via template interpolation. The scanner cannot resolve template expressions at build time, sotooltip-right(and the other direction classes) are never included in the CSS bundle. Withouttooltip-rightin the stylesheet, DaisyUI falls back to its default direction (top/above). The fix is to replace the interpolation with a lookup object whose values are full literal class name strings, so the scanner can see all four options unconditionally.The default direction remains
'right'. Callers that need a different direction (e.g.fares-modal.tspasses'bottom'for table column headers) continue to work unchanged.Relevant context
src/utils/field-component.ts—renderFieldLabelContent(~line 178–194). The broken line:src/modules/fares-modal.ts— callsrenderFieldLabelContent(config, 'bottom')(line 79) for table column headers. Direction should stay'bottom'; no change needed there.src/modules/timetable-renderer.ts— callsrenderFieldLabelContent(config)(line 244) with no direction; relies on the default ('right').renderLabelinfield-component.ts(~line 199) — callsrenderFieldLabelContent(config)with no direction; used for Feed Information form labels. This is the regression site (tooltips appear above on fresh builds).Phase 1 — Fix the class name interpolation
Goal: Replace the template-literal class interpolation with a lookup object so all four
tooltip-*class names appear as string literals in the source. Tailwind's scanner will then include them in the CSS bundle unconditionally.renderFieldLabelContent(field-component.ts ~line 191), replace: with:'right') and thefares-modal.tscall ('bottom') remain unchanged — no other callers need updating.