Closed liunate closed 10 months ago
Hello π while I am migrating the new decorator code base, I am wondering whether we need some feature flag for people don't want the new round-shaped decorator? Like in this style file line some overriding rules making decorator border looks round followed. Will it be a good idea to leave the option to consumers whether they want to move over to new decorator look, or stay at original square-shaped decorator?
FYI you can see new decorator in action by spinning up storybook and go to:
iframe.html?knob-Active (`active`)=true&knob-Link (`href`)=&args=&id=decorator--default
I notice there are couple of components leveraging <Decorator>
like DataDecorator
, Pill
,
Name | Link |
---|---|
Latest commit | f890b86a8e984eed46cc0ecabf4ab04b96100c55 |
Latest deploy log | https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6421a71c75750a000848d7b0 |
Deploy Preview | https://deploy-preview-2772--carbon-for-ibm-products.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
@amtoussam @jlongshore I just checked up on the PR status and I'm wondering if there's anything else I can help to progress this PR? Tks~
@liunate There are conversations designers are having with each other but this implementation. I hope to have an answer for you by next week.
CC: @jlongshore
@amtoussam - have you synced with Jamie, Cameron, or whoever else needed to be involved? I know Jamie is planning to do a design review ASAP.
@jgodman Please review this PR and let us know if it meets Design standards.
- decorator should not have an underline on hover
The underline is only drawn when the right part of decorator alone is clickable to match existing decorator behavior and the new purposed design in figma
Do we want to change that to better match HTML standard?
- I didn't see if the left-click context menu was available in the repo.
There are two reasons it's not part of this PR:
- decorator should not have an underline on hover
The underline is only drawn when the right part of decorator alone is clickable to match existing decorator behavior and the new purposed design in figma
Do we want to change that to better match HTML standard?
Hey Nate, yes! Design has given this some thought as we want to move toward links being navigational, so removing the underline on hover and click will work well in this case.
2. by various libraries).
Hmm, Interesting, the reason we split the decorator in two was to have the left side have an action, the action was to open the context menu and provide a way to "add to case" etc. Im not sure I understand, if we don't have a context menu showing when the user clicks the left side of the decorator button, what happens?
if we don't have a context menu showing when the user clicks the left side of the decorator button, what happens?
Current implementation leaves the decision to new decorator consumer. The reason is mentioned here.
The biggest obstacle here is we don't have a context menu in shared code base. Current decorator users are using their own menu implementation(home-brewed, external libraries). By leaving the decision of what to do at click to them, they can keep their current implementation. It's also when Carbon menu is ready for production, we could enhance new decorator with that to provide a built-in menu feature on new decorator.
@jgodin2023
@liunate Any updates on this progress?
hi @elycheea sorry for the delay, I was busy with another assignment but will definitely progress this 1st thing next week.
What I plan to do is:
As a side note, I just reviewed latest carbon menu and it is now production ready. That menu could be the next thing we could include in this component given that context menu is the common decorator use case.
Name | Link |
---|---|
Latest commit | 31aa9a015f027f39f7b32d7c6a6a586d58e671ec |
Latest deploy log | https://app.netlify.com/sites/v1-carbon-for-ibm-products/deploys/64c3c2ddeaf1e600073644f1 |
Deploy Preview | https://deploy-preview-2772--v1-carbon-for-ibm-products.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
What I plan to do is:
- Rebase to keep good base of this PR head branch
- Remove the underline per previous design comment
- Check back here again see if we could move on next stage
@elycheea @jgodin2023 I just rebased and updated the component by previous comment. Let me know if there's anything else needs to be done to proceed with this PR. Many thanks!
@jgodin2023 Iβm running the checks now so once they all pass, there should be a new preview if you could re-review. @jlongshore and I can help with the review from here. Thank you!
@elycheea tks for triggering the CI run for me and it's obvious I missed some linting and snapshot things, so I just fixed them right away. What's still blocking is I saw there are couple a11y test failures from c4p
that does not seem to be related in any way to the security Decorator
I am working on. These three c4p
test cases all failed at the a11y:
@carbon/ibm-products: FAIL src/components/EditSidePanel/EditSidePanel.test.js (14.743 s)
@carbon/ibm-products: β EditSidePanel βΊ has no accessibility violations
@carbon/ibm-products: FAIL src/components/CreateSidePanel/CreateSidePanel.test.js (15.734 s)
@carbon/ibm-products: β CreateSidePanel βΊ has no accessibility violations
@carbon/ibm-products: FAIL src/components/APIKeyModal/APIKeyModal.test.js (18.969 s)
@carbon/ibm-products: β APIKeyModal βΊ has no accessibility violations
I can reproduce the same locally by running yarn run ci-check:test:c4p
. Then I logged the rendered DOM to another browser tab and ran DevTool IBM achecker, it shows me the same violation as above.
await wait(3000);
screen.logTestingPlaygroundURL();
I know at this moment these packages c4p
and security
are configured independent versioning, and c4p
could only actively maintained at another branch main
instead of main_v1
. Could that be the reason over time package c4p
on main_v1
generating more a11y violation as accessibility check rule updated? Or are those a11y or whatever test fails in that c4p
package not something we care about for this PR head branch based on main_v1
?
@liunate I can help look into the that β I think itβs this issue that we fixed in main
(#3177) but might not have opened a PR for main_v1
yet.
I think better to keep it as a separate PR that we merge before this one so you can keep the PR scope small here. Will let you know once we address it!
We merged https://github.com/carbon-design-system/ibm-products/pull/3233 this morning β this should resolve the issue now. π€
We merged #3233 this morning β this should resolve the issue now. π€
@elycheea Thanks for the prompt fix π Just ran all tests locally again and all passed, so could you please help trigger another round of CI check?
Hello there~ just checking in and wondering if there's anything else needed to move forward with this PR? Tks~
Contributes to #2750 - decorator with enhanced accessibility
What did you change?
<button>
, which could play the same role as pointer-right-click(onContextMenu
).<Pill>
.How did you test and verify your work?
<button>
.<button>
.