Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@
%tabs-header {
overflow: hidden;
flex: 0 0 auto;
background: var-get($theme, 'item-background');
z-index: 1;

@if $bootstrap-theme {
position: relative;

&::after {
content: '';
position: absolute;
bottom: 0;
inset-inline-start: 0;
width: 100%;
height: rem(1px);
background: var-get($theme, 'border-color');
z-index: 0;
}
}
@if $bootstrap-theme {
position: relative;
background: var-get($theme, 'item-background');

&::after {
content: '';
position: absolute;
bottom: 0;
inset-inline-start: 0;
width: 100%;
height: rem(1px);
background: var-get($theme, 'border-color');
z-index: 0;
}
}
}

%tabs-header-content {
Expand Down Expand Up @@ -204,6 +204,7 @@
@if $not-bootstrap-theme {
transition: all .3s $tabs-animation-function;
border: rem(1px) solid var-get($theme, 'border-color');
border-radius: var-get($theme, 'border-radius');

&:hover,
&:focus {
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs-showcase/tabs-showcase.sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@for (contact of contacts; track contact.id) {
<igc-tab [selected]="contact.id === selectedTabId">
@if(!properties.hideIcon) {
<igx-icon slot="label">folder</igx-icon>
<igc-icon name="folder" slot="label"></igc-icon>
}
@if(!properties.hideText) {
<span slot="label">{{ contact.text }}</span>
Expand Down
9 changes: 8 additions & 1 deletion src/app/tabs-showcase/tabs-showcase.sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ import {
defineComponents,
IgcTabsComponent,
IgcTabComponent,
IgcIconComponent,
registerIconFromText
} from 'igniteui-webcomponents';
import {
PropertyChangeService,
Properties,
} from '../properties-panel/property-change.service';

defineComponents(IgcTabsComponent, IgcTabComponent);
defineComponents(IgcTabsComponent, IgcTabComponent, IgcIconComponent);

registerIconFromText(
'folder',
'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Z"/></svg>'
);

@Component({
selector: 'app-tabs-showcase-sample',
Expand Down
Loading