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

chore: fixed rounded prop and added tests to datepicker #580

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

BallardRobinett
Copy link
Contributor

@BallardRobinett BallardRobinett commented Oct 26, 2022

Fixes #562

Proposed Changes

  • fixed rounded prop issue
  • added testing

Copy link
Contributor

@BCerki BCerki left a comment

Choose a reason for hiding this comment

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

Looking good, just a couple comments

Comment on lines 44 to 48
rounded: {
input: `
border-radius: 0.25em;
`,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add this to the global style object instead of the DatePicker component specifically? Or will that break other components' styles?

import '@testing-library/jest-dom/extend-expect';
import 'regenerator-runtime/runtime';
import { changeSelectorToObject } from '../../bcgov-theme/utils/test-helpers';
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to move the test-helpers somewhere more general if we're going to be using them in multiple packages, but that can be future tech debt consideration

@BCerki
Copy link
Contributor

BCerki commented Oct 27, 2022

Forgot to mention earlier, if you put the issue number in the PR description after "Fixes #", then the issue will automatically close and update the board when the PR is merged

@BallardRobinett BallardRobinett force-pushed the 562-fix-rounded-prop-in-datepicker branch from c9129b0 to 54c7652 Compare October 27, 2022 18:46
@BallardRobinett BallardRobinett merged commit 7e9262d into develop Oct 27, 2022
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.

Rounded prop in Button theme Datepicker component doesn't work
2 participants