-
Notifications
You must be signed in to change notification settings - Fork 77
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
2929 upgrade carbon #2932
2929 upgrade carbon #2932
Conversation
✔️ Deploy Preview for carbon-addons-iot-react ready! 🔨 Explore the source changes: 901434c 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-addons-iot-react/deploys/618d66737af86f000a65bdd0 😎 Browse the preview: https://deploy-preview-2932--carbon-addons-iot-react.netlify.app |
✔️ Deploy Preview for ai-apps-pal-angular ready! 🔨 Explore the source changes: 901434c 🔍 Inspect the deploy log: https://app.netlify.com/sites/ai-apps-pal-angular/deploys/618d66737af86f000a65bdd4 😎 Browse the preview: https://deploy-preview-2932--ai-apps-pal-angular.netlify.app |
<ForwardRef(Warning24) /> | ||
</div> | ||
</div> | ||
} |
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.
Carbon started using itemToString
to add a title to the currently selectedItem in a dropdown; however, this breaks our current implementation of IconDropdowns. I've opened an issue with them to add another prop to allow us to render the selectedItem as an element instead of always calling the itemToString
carbon-design-system/carbon#10038
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.
FYI. I think we have had that conversation with them before and they didn't want to support that functionality because they didn't agree with the design use case, but let's hope they change their minds.
} else { | ||
handleSelect(item.id, parentId); | ||
} | ||
}} |
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.
carbon seems to have fixed the double-event firing that was happening when clicking the checkbox, so this stopProp isn't needed anymore. You can confirm with:
- Go to story path=/story/1-watson-iot-list--with-checkbox-multi-selection
- Verify that the multi selection works by clicking on the row, clicking the checkbox and using enter key when row is focused.
- Verify the same but with knob isVirtualList checked
- Go to story path=/story/1-watson-iot-list--with-checkbox-multi-selection-and-hierarchy
- Repeat step 2-3 but also verify that child / parent selections works in BOTH directions including the indeterminate state
@@ -171,7 +171,7 @@ const ImageGalleryModal = ({ | |||
secondaryButtonText={modalSecondaryButtonLabelText} | |||
modalHeading={deleteModalTitleText(selectedImage?.id)} | |||
size="xs" | |||
iconDescription={modalCloseIconDescriptionText} |
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.
iconDescription is being deprecated in favor of other attributes. On the Modal it's the closeButtonLabel
Good eye. Fixed. |
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.
whew! That was a doozy. I think this last one will be it and it should be ok to 🚢
This PR currently has a merge conflict. Please resolve this and then re-add the |
Closes #2929
Closes #2437
Summary
10.40
container
to query for classes needed to be switched todocument.body
10.41
.bx--pagination__button
was reduced from3rem
to2.5rem
size
parameter toSimplePagination
and defaulted it tolg
10.42
10.43
title
attributes were added to the selected item in Dropdowns, so tests usingscreen.getByRole('button', { name: 'Size Small (4x1)' })
have now changed, b/c the title attribute doesn't match the text content that it used toscreen.getByRole('button', { name: 'Size Small (4x1) Open menu' })
in one casetitle
attribute that is[Object object]
, because carbon is now usingitemToString
to add a title to the dropdown. This doesn't prevent the dropdowns from working, but they become less accessible. An issue has been opened requesting the ability to render the selected item withitemToElement
instead of always usingitemToString
10.44
wrapperClassName
for Checkbox will be deprecated in V11 in favor ofclassName
.className
will then be placed on the outer wrapper.10.45
10.46
10.47
iconDescription
prop is being deprecated in favor of other props. On theModal
, it has been replaced withcloseIconLabel
, and on theTimePickerSelect
it has been replaced witharia-label
. Deprecate usage oficonDescription
for v11 carbon#9624Acceptance Test (how to verify the PR)
Confirm expanded SideNav item collapse when in isRail modeActually, this one doesn't seem to be working in the preview, but it definitely works locally. Their fix is using.child.type.name
and I'm betting that's getting mangled by minification. Posted a comment on the original issueRegression Test (how to make sure this PR doesn't break old functionality)
itemToString
Things to look for during review
iot
orbx
class prefix is using the prefix variabledata-testid
attribute. New test ids should have test written to ensure they are not changed or removed.