Open SteniTK opened 5 years ago
The breadcrumb should collapse when the size of breadcrumb is greater than the size of container.
The breadcrumb does not collapse but text gets hidden/truncated.
Resize the screen until the last item's text gets truncated. Ideally this truncation should not happen.
Before resizing screen :
After resizing screen :
When calculating the width of the breadcrumb, assumptions are not matching the actual element as so :
Right arrow assumption https://github.com/predixdesignsystem/px-breadcrumbs/blob/c7d688315d871f5fdb81f6ab2d4d7c15b8b8ad60/px-breadcrumbs.html#L259
Down arrow assumption https://github.com/predixdesignsystem/px-breadcrumbs/blob/c7d688315d871f5fdb81f6ab2d4d7c15b8b8ad60/px-breadcrumbs.html#L252
Using a style sheet, force the right arrow to be 15 px and the down arrow to be 21px
Expected behavior
The breadcrumb should collapse when the size of breadcrumb is greater than the size of container.
Actual behavior
The breadcrumb does not collapse but text gets hidden/truncated.
Steps to reproduce the problem:
Resize the screen until the last item's text gets truncated. Ideally this truncation should not happen.
Environment (component version number, Browser (including version), operating system, hardware, etc):
Screenshots (optional, but very helpful):
Before resizing screen :
After resizing screen :
Source of Bug
When calculating the width of the breadcrumb, assumptions are not matching the actual element as so :
Location of code for bug
Right arrow assumption https://github.com/predixdesignsystem/px-breadcrumbs/blob/c7d688315d871f5fdb81f6ab2d4d7c15b8b8ad60/px-breadcrumbs.html#L259
Down arrow assumption https://github.com/predixdesignsystem/px-breadcrumbs/blob/c7d688315d871f5fdb81f6ab2d4d7c15b8b8ad60/px-breadcrumbs.html#L252
Workaround for current version
Using a style sheet, force the right arrow to be 15 px and the down arrow to be 21px