Skip to content

Commit

Permalink
chore(all): fix icorrect replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsiBarsi committed Dec 25, 2020
1 parent 32c64bc commit a16820f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/addon-tablebars/classes/table-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class TableBar {
readonly content: PolymorpheusContent<{}>,
options: TuiTableBarOptions = {},
) {
const {mode = 'onDark', hasCloseButton = false, adaptive = false} = options;
const {mode = 'onLight', hasCloseButton = false, adaptive = false} = options;

this.mode = mode;
this.hasCloseButton = hasCloseButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class TuiTableBarsHostComponent {
) {}

getMode(mode: TuiBrightness): TuiBrightness | null {
return mode === 'onLight' ? 'onLight' : null;
return mode === 'onLight' ? 'onDark' : null;
}

onCloseClick(itemToRemove: TableBar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class TuiScrollControlsComponent {
) {}

get isLight(): boolean {
return !!this.modeDirective && this.modeDirective.mode === 'onLight';
return !!this.modeDirective && this.modeDirective.mode === 'onDark';
}

private get scrollbars(): [boolean, boolean] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ExampleTuiTableBarComponent implements OnDestroy {
LESS: example1Less,
};

readonly modeVariants: ReadonlyArray<TuiBrightness> = ['onDark', 'onLight'];
readonly modeVariants: ReadonlyArray<TuiBrightness> = ['onLight', 'onDark'];

mode = this.modeVariants[0];

Expand Down
2 changes: 1 addition & 1 deletion projects/kit/components/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class TuiPaginationComponent
}

getSmallElementMode(index: number, mode: TuiBrightness | null): TuiAppearance {
return this.index === index && mode !== 'onDark'
return this.index === index && mode !== 'onLight'
? TuiAppearance.Primary
: TuiAppearance.Secondary;
}
Expand Down

0 comments on commit a16820f

Please sign in to comment.