Skip to content

fix(examples): updating example microcopy#6196

Merged
redallen merged 4 commits intopatternfly:mainfrom
evwilkin:fix/5714-microcopy
Aug 19, 2021
Merged

fix(examples): updating example microcopy#6196
redallen merged 4 commits intopatternfly:mainfrom
evwilkin:fix/5714-microcopy

Conversation

@evwilkin
Copy link
Member

What: Closes #5714

This PR updates microcopy across examples & demos as laid out in issue #5714

return dasherizedDate;
};
const dateParse = date => {
const split = date.split('/');
Copy link
Contributor

Choose a reason for hiding this comment

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

If you modify dateFormat you'll also have to modify dateParse.

BTW, why is our microcopy suggesting the American date format use - instead of / as the delimiter?

Copy link
Member Author

Choose a reason for hiding this comment

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

@abigaeljamie @afialkoff can we confirm that the changes we're making to this microcopy (MM-DD-YYYY) align with the example title AmericanFormat? The way a date is formatted by Javascript when indicating en-US (USA locale) is MM/DD/YYYY (slashes rather than dashes), so we may need to revert this update or change the title of the example per @redallen's comment

Choose a reason for hiding this comment

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

Great catch! We recommended MM-DD-YYYY based on the existing microcopy guidelines provided for date and time formats on our PatternFly numerics page (https://www.patternfly.org/v4/ux-writing/numerics#date-and-time-formats).

What do you think is the best solution? We could change the - to / format here and update the Numerics page to match, but we'd need to make sure we carry that through to Red Hat products that have existing date formats written as MM-DD-YYYY.

Curious to hear your thoughts on this too, @abigaeljamie!

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, I think the PatternFly numerics page should reflect the international choice of YYYY-MM-DD that was signed off by design for the default DatePicker implementation. That's what ISO8601 and the ECMA standard use.

Copy link
Collaborator

@abigaeljamie abigaeljamie Aug 19, 2021

Choose a reason for hiding this comment

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

If Design already signed off on the international formatting (YYY-MM-DD) for the DatePicker implementation, I'm fine with changing the Numerics page to reflect that guidance. Would it be possible to change the component to reflect that, @evwilkin ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@abigaeljamie @afialkoff @redallen I'm going to pull these date formatting changes out of this PR for now, it sounds like a bigger discussion on not just how to proceed with this microcopy but with the guidelines for users and how changing this guidance will affect our users. Created #6199 as a follow-up.

@patternfly-build
Copy link
Collaborator

patternfly-build commented Aug 19, 2021

Copy link
Contributor

@redallen redallen left a comment

Choose a reason for hiding this comment

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

Sometimes no change is a good change :)

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM. We can merge once it get Abi's approval

@redallen redallen merged commit b1d90f2 into patternfly:main Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microcopy revisions needed across component docs

6 participants