Skip to content

Commit

Permalink
Tweak for Focus
Browse files Browse the repository at this point in the history
  • Loading branch information
tjamesallen15 committed Jan 15, 2024
1 parent c87b155 commit 32ac830
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3820,7 +3820,6 @@ Tabs.prototype = {
const focusStateElem = this.focusState[0];
let targetPos = DOM.getDimensions(target[0]);
const targetClassList = target[0].classList;
const isNotHeaderTabs = (!this.isHeaderTabs() || this.isHeaderTabs() && this.element[0].classList.contains('alternate'));
const isRTL = Locale.isRTL();
const tabMoreWidth = !this.isVerticalTabs() ? this.moreButton.outerWidth(true) - 8 : 0;
const parentContainer = this.element;
Expand Down Expand Up @@ -3861,7 +3860,7 @@ Tabs.prototype = {
targetRectObj.right -= 1;

// On RTL, remove the width of the controls on the left-most side of the tab container
if (!isNotHeaderTabs) {
if (self.isHeaderTabs() ) {

Check failure on line 3863 in src/components/tabs/tabs.js

View workflow job for this annotation

GitHub Actions / build (18.x)

There should be no space before this paren
targetRectObj.left -= tabMoreWidth;
targetRectObj.right -= tabMoreWidth;
}
Expand All @@ -3885,10 +3884,9 @@ Tabs.prototype = {
}
}

if (isNotHeaderTabs && !self.isVerticalTabs() && !self.isModuleTabs()) {
if (!self.isHeaderTabs() && !self.isVerticalTabs() && !self.isModuleTabs()) {

Check failure on line 3887 in src/components/tabs/tabs.js

View workflow job for this annotation

GitHub Actions / build (18.x)

Multiple spaces found before '&&'
targetRectObj.height += 4;
targetRectObj.top -= 7;
console.log('haha');
}

if (self.isModuleTabs() && !self.isVerticalTabs()) {

Check failure on line 3892 in src/components/tabs/tabs.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'isNotHeaderTabs' is not defined
Expand Down

0 comments on commit 32ac830

Please sign in to comment.