Skip to content

Commit

Permalink
chore(divider): add tests and support forced-colors mode
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 504660829
  • Loading branch information
asyncLiz authored and Copybara-Service committed Jan 25, 2023
1 parent 7c4e63f commit 05ad9ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions divider/divider_test.ts
@@ -0,0 +1,17 @@
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/

// import 'jasmine'; (google3-only)

import {createTokenTests} from '../testing/tokens.js';

import {MdDivider} from './divider.js';

describe('<md-divider>', () => {
describe('.styles', () => {
createTokenTests(MdDivider.styles);
});
});
6 changes: 6 additions & 0 deletions divider/lib/_divider.scss
Expand Up @@ -45,4 +45,10 @@
height: 100%;
width: 100%;
}

@media (forced-colors: active) {
:host::before {
background: CanvasText;
}
}
}

0 comments on commit 05ad9ef

Please sign in to comment.