Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

enable style overrides in timestamp #4109

Merged
merged 4 commits into from
Dec 10, 2020
Merged

Conversation

jroebu14
Copy link
Contributor

@jroebu14 jroebu14 commented Dec 9, 2020

Overall change:
Enables style overrides on the time element.

Code changes:

  • adds className prop to timestamp container and timestamp component so that consumers can override styles.

  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

Jonathan Roebuck added 3 commits December 9, 2020 13:14
Bump package versions for psammead-timestamp, psammead-timestamp-container
Updates changelogs for psammead-timestamp, psammead-timestamp-container
@jroebu14 jroebu14 self-assigned this Dec 9, 2020
@jroebu14 jroebu14 added the cross-team For visibility for both World Service teams (Engage & Media) label Dec 9, 2020
@jroebu14 jroebu14 marked this pull request as ready for review December 9, 2020 13:20
@@ -34,6 +34,7 @@ const Timestamp = ({
padding,
service,
darkMode,
className,
}) => (
<StyledTimestamp
Copy link
Contributor

Choose a reason for hiding this comment

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

This component seems to be unnecessary - it's just drilling props untouched

I think deleting line 29-49 and just exporting the StyledTimestamp directly might be better

Copy link
Contributor

Choose a reason for hiding this comment

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

untouched

Not entirely - it's renaming datetime to dateTime

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cross-team For visibility for both World Service teams (Engage & Media)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants