Skip to content

Use new DatePicker in WTForms date/time fields - #6832

Merged
ThiefMaster merged 22 commits into
indico:masterfrom
ThiefMaster:wtf-date-picker
Apr 7, 2025
Merged

Use new DatePicker in WTForms date/time fields#6832
ThiefMaster merged 22 commits into
indico:masterfrom
ThiefMaster:wtf-date-picker

Conversation

@ThiefMaster

@ThiefMaster ThiefMaster commented Apr 3, 2025

Copy link
Copy Markdown
Member

closes #6662

@ThiefMaster ThiefMaster added this to the v3.3 milestone Apr 3, 2025

@tomasr8 tomasr8 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.

The icon alignment/size seems a bit off in the cloning dialog:
image

Compare with the material package form:
image

Comment thread indico/web/client/js/react/components/WTFDateField.jsx Outdated
Comment thread indico/web/client/js/react/components/WTFDateField.jsx Outdated
}
}

.ui-widget ind-date-picker > button {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@foxbunny Do you see a better solution for this? Making the rule inside %text-size-reset important would also work, but not sure if this doesn't have some bad side effects elsewhere...

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

%text-size-reset is probably not the best workaround for the font size issue. It's more like a marker so I know what to address once we actually solve the problem (god knows when, lol). In theory, it shouldn't have any bad side-effects, but it can fail to work when, say, there are rules with high-specificity selectors that affect elements inside the widget and override font sizes.

Comment thread indico/web/client/js/react/components/WTFOccurrencesField.jsx Outdated
@ThiefMaster ThiefMaster changed the title Use new DatePicker in WTForms IndicoDateField Use new DatePicker in WTForms date/time fields Apr 7, 2025
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript deps labels Apr 7, 2025
@ThiefMaster
ThiefMaster merged commit 4ef6c89 into indico:master Apr 7, 2025
@ThiefMaster
ThiefMaster deleted the wtf-date-picker branch April 7, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript deps

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure the new DatePicker can be used in WTFDateField etc.

3 participants