-
Notifications
You must be signed in to change notification settings - Fork 36
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(web-components): extra check to default & remove dupe conditional #2182
Conversation
0c65fb9
to
eb7aab0
Compare
Hi, this PR has been inactive for 2 weeks now. Please leave a comment if you're still working on it. Continued inactivity will result in us closing this PR |
@GCHQ-Developer-530 I can fix it, but I can't reproduce the error. Once a valid reproduction instruction/repo is made, the change would be trivial. |
To recreate:
|
packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx
Show resolved
Hide resolved
Only a couple more things to sort out and this PR should be good. Please can you squash your commits into one. Also the PR is currently failing due to some lint errors, on line 45 and 46 it's giving this error - "Irregular whitespace not allowed no-irregular-whitespace", please could you update the PR to fix that? Thank you |
packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx
Show resolved
Hide resolved
packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx
Outdated
Show resolved
Hide resolved
305ba4a
to
07bf06e
Compare
packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx
Show resolved
Hide resolved
This is looking good code wise now! Would it be possible for you to add a spec test or a Cypress test where you pass through undefined and expect it to resolve to ""? Just so we'd know if we broke the behaviour in the future, and to keep the test coverage up. Thank you |
PTAL |
977b2b8
to
60a9740
Compare
Please can you add another test where the props are set to undefined as well? Also please squash your commits into one. Thank you |
82f01fd
to
3a2e1c6
Compare
@GCHQ-Developer-530 I’ve also added a cypress test to make coverage better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 😊 thanks again for your contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @evenstensberg , please can you update your commit messages so they are more descriptive of the changes made
05bf4c5
to
8cb54ec
Compare
Pushed new commit messages now. Let me know if they are too vague @GCHQ-Developer-112 . |
The react commit looks good! Please add "in classification banner" to the end of the current commit message for web components. If this is too many characters, "classification" can be shortened to "class". |
@GCHQ-Developer-112 PTAL |
Summary of the changes
Wasn't able to reproduce the bug, but I believe an extra check in the render should do the trick. If you can show me code to make the reproduction viable, I can adjust the PR to that (https://github.com/evenstensberg/banner-repro-ic/blob/master/src/HelloWorldComponent.js)
Related issue
#2177
Checklist
General
Testing
Accessibility
Resize/zoom behaviour
System modes
Testing content extremes