fundamental-ngx icon indicating copy to clipboard operation
fundamental-ngx copied to clipboard

fix: give breadcrumb item in overflow click proxy

Open NancyKunath opened this issue 2 years ago • 6 comments

Related Issue(s)

closes #8521

Description

Breadcrumb items in overflow are now clickable (again).

Please check whether the PR fulfills the following requirements

During Implementation
  1. Visual Testing:
  • [x] visual misalignments/updates
  • [x] check Light/Dark/HCB/HCW themes
  • [x] RTL/LTR - proper rendering and labeling
  • [x] responsiveness(resize)
  • [x] Content Density (Cozy/Compact/(Condensed))
  • [x] States - hover/disabled/focused/active/on click/selected/selected hover/press state
  • [x] Interaction/Animation - open/close, expand/collapse, add/remove, check/uncheck
  • [x] Mouse vs. Keyboard support
  • [x] Text Truncation
  1. API and functional correctness
  • [x] check for console logs (warnings, errors)
  • [ ] API boundary values
  • [ ] different combinations of components - free style
  • [ ] change the API values during testing
  1. Documentation and Example validations
  • [ ] missing API documentation or it is not understandable
  • [ ] poor examples
  • [ ] Stackblitz works for all examples
  1. Accessibility testing
  2. Browser Testing - Edge, Safari, Chrome, Firefox
PR Quality
  • [x] the commit message(s) follows the guideline: https://github.com/SAP/fundamental-ngx/blob/main/CONTRIBUTING.md
  • [ ] tests for the changes that have been done
  • [x] all items on the PR Review Checklist are addressed : https://github.com/SAP/fundamental-ngx/wiki/PR-Review-Checklist
  • [ ] Run npm run build-pack-library and test in external application
  • [ ] update README.md
  • [ ] Breaking Changes Wiki

NancyKunath avatar Aug 08 '22 14:08 NancyKunath

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Aug 08 '22 14:08 cla-assistant[bot]

Deploy Preview for fundamental-ngx ready!

Name Link
Latest commit fcf38f8965388f8ccb595f64df1b13c3846cc214
Latest deploy log https://app.netlify.com/sites/fundamental-ngx/deploys/62fe7bab97f5660008bbff40
Deploy Preview https://deploy-preview-8522--fundamental-ngx.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Aug 08 '22 14:08 netlify[bot]

I checked https://sap.github.io/fundamental-ngx/#/core/breadcrumb and it works as expected(navigates without issue)

v0.35.4

g-cheishvili avatar Aug 09 '22 10:08 g-cheishvili

I added a gif showing the bug to the issue #8521. Please have a look.

NancyKunath avatar Aug 09 '22 10:08 NancyKunath

I checked it out. You are right.

Just solution is not quite on point. _needsClickProxy is an internal thing, its usage should be changed, instead of name, underscore is important:

this should be in libs/core/src/lib/breadcrumb/breadcrumb.component.ts:125

itemClicked(breadcrumbItem: BreadcrumbItemComponent, $event: any): void {
      if (breadcrumbItem._needsClickProxy) {
          $event.preventDefault();
          breadcrumbItem.breadcrumbLink.elementRef().nativeElement.click();
      }
  }

g-cheishvili avatar Aug 09 '22 11:08 g-cheishvili

Okay. I added the underscore again.

NancyKunath avatar Aug 09 '22 11:08 NancyKunath

This pull request is stale because it has been open 2 days with no activity. Remove stale label or comment or this will be closed in 3 days

github-actions[bot] avatar Aug 14 '22 00:08 github-actions[bot]

Closing in favor of #8599

mikerodonnell89 avatar Aug 24 '22 21:08 mikerodonnell89