Skip to content

Commit 1eed1b9

Browse files
authored
Don't make the toolbar stands out of its parent (#126)
Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 25893a5 commit 1eed1b9

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

packages/components/src/toolbar/index.ts

+1-20
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
StartEnd,
1616
StartEndOptions,
1717
applyMixins,
18-
composedParent,
1918
getDirection,
2019
toolbarTemplate as template
2120
} from '@microsoft/fast-foundation';
@@ -26,8 +25,6 @@ import {
2625
limit
2726
} from '@microsoft/fast-web-utilities';
2827
import { isFocusable } from 'tabbable';
29-
import { Swatch } from '../color/swatch.js';
30-
import { fillColor, neutralFillLayerRecipe } from '../design-tokens.js';
3128
import { toolbarStyles as styles } from './toolbar.styles.js';
3229

3330
/**
@@ -394,23 +391,7 @@ applyMixins(FoundationToolbar, StartEnd, DelegatesARIAToolbar);
394391
* @public
395392
* @tagname jp-toolbar
396393
*/
397-
export class Toolbar extends FoundationToolbar {
398-
connectedCallback() {
399-
super.connectedCallback();
400-
401-
const parent = composedParent(this);
402-
403-
if (parent) {
404-
fillColor.setValueFor(
405-
this,
406-
(target: HTMLElement): Swatch =>
407-
neutralFillLayerRecipe
408-
.getValueFor(target)
409-
.evaluate(target, fillColor.getValueFor(parent))
410-
);
411-
}
412-
}
413-
}
394+
export class Toolbar extends FoundationToolbar {}
414395

415396
/**
416397
* A function that returns a {@link @microsoft/fast-foundation#Toolbar} registration for configuring the component with a DesignSystem.

0 commit comments

Comments
 (0)