-
Notifications
You must be signed in to change notification settings - Fork 393
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: (CXSPA-9018) - Fix extra reading issue when tab-panel is focused in 'Delivery method' #19920
Conversation
spartacus
|
Project |
spartacus
|
Branch Review |
feature/CXSPA-9018
|
Run status |
|
Run duration | 13m 58s |
Commit |
|
Committer | petarmarkov9449 |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
3
|
|
2
|
|
0
|
|
125
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
[tabs]="tabs" | ||
[config]="tabConfig" | ||
></cx-tab> | ||
<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.
Do we need to add div
to the DOM? Its a breaking change if we need to.
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.
I've just removed it.
I think it was added by a mistake.
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.
Left some comments.
@@ -1,7 +1,6 @@ | |||
<div | |||
[attr.role]="mode === TAB_MODE.ACCORDIAN ? 'region' : 'tabpanel'" | |||
[tabindex]="tab.disableBorderFocus ? -1 : 0" | |||
[attr.aria-labelledby]="tab.id ?? null" |
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.
let's roll back this line
@@ -46,7 +46,6 @@ describe('TabPanelComponent', () => { | |||
expect(tabPanel?.getAttribute('tabindex')).toEqual('0'); | |||
expect(tabPanel?.getAttribute('role')).toEqual('tabpanel'); | |||
expect(tabPanel?.getAttribute('class')).toEqual('active'); | |||
expect(tabPanel?.getAttribute('aria-labelledby')).toEqual('1'); |
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.
lets roll back this :)
@@ -58,7 +57,6 @@ describe('TabPanelComponent', () => { | |||
expect(tabPanel?.getAttribute('tabindex')).toEqual('0'); | |||
expect(tabPanel?.getAttribute('role')).toEqual('region'); | |||
expect(tabPanel?.getAttribute('class')).toEqual('active'); | |||
expect(tabPanel?.getAttribute('aria-labelledby')).toEqual('1'); |
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.
And this :)
Closing as the changes have already been merged in #19956 |
Ticket: CXSPA-9018
Fix extra reading issue when tab-panel is focused in 'Delivery method'.
Affects: TabPanelComponent