Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix prop types of the InlineMessage component #1450

Merged
merged 2 commits into from
Feb 23, 2022
Merged

Conversation

connor-baer
Copy link
Member

Addresses #ticket-number.

Purpose

In #1437, the prop types for the InlineMessage were narrowed accidentally. Previously, the styled component was exported directly, which merged the custom prop types with the default HTML attributes of the element. In order to deprecate the component, it was wrapped in a function component that missed the default HTML attributes. This caused errors when passing children to the component.

Approach and changes

  • Extend the prop types with the default HTML attributes
  • Polish some of the deprecation messages

Definition of done

  • Development completed
  • Reviewers assigned
  • Unit and integration tests
  • Meets minimum browser support
  • Meets accessibility requirements

@connor-baer connor-baer requested a review from a team as a code owner February 23, 2022 21:58
@connor-baer connor-baer requested review from robinmetral and removed request for a team February 23, 2022 21:58
@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2022

🦋 Changeset detected

Latest commit: 29dbf4f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sumup/circuit-ui Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@connor-baer connor-baer added the 🐞 bug Something isn't working as it should label Feb 23, 2022
@vercel
Copy link

vercel bot commented Feb 23, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sumup/oss-circuit-ui/EuFWtWC88AYSdQfwbHgU8RSFcN2R
✅ Preview: https://oss-circuit-ui-git-bugfix-prop-types-sumup.vercel.app

@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #1450 (29dbf4f) into main (afbe499) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1450      +/-   ##
==========================================
+ Coverage   92.21%   92.23%   +0.02%     
==========================================
  Files         195      195              
  Lines        3993     3992       -1     
  Branches     1260     1260              
==========================================
  Hits         3682     3682              
+ Misses        292      291       -1     
  Partials       19       19              
Impacted Files Coverage Δ
...ircuit-ui/components/Notification/Notification.tsx 90.47% <ø> (ø)
...i/components/NotificationCard/NotificationCard.tsx 90.90% <ø> (ø)
...i/components/NotificationList/NotificationList.tsx 91.66% <ø> (ø)
...cuit-ui/components/InlineMessage/InlineMessage.tsx 92.00% <100.00%> (-0.31%) ⬇️
...mponents/NotificationBanner/NotificationBanner.tsx 83.60% <0.00%> (+1.63%) ⬆️

@connor-baer connor-baer merged commit db3f446 into main Feb 23, 2022
@connor-baer connor-baer deleted the bugfix/prop-types branch February 23, 2022 22:06
@github-actions github-actions bot mentioned this pull request Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working as it should 🗂 circuit-ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant