-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move
dnb-ui-tags
to themes (#2140)
- Loading branch information
1 parent
e400869
commit d2bc632
Showing
13 changed files
with
112 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
packages/dnb-eufemia/src/style/themes/theme-ui/__tests__/dnb-ui-tags.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* CSS Package Test | ||
* | ||
*/ | ||
|
||
import { loadScss } from '../../../../core/jest/jestSetup' | ||
|
||
describe('dnb-ui-tags.css', () => { | ||
const scss = loadScss(require.resolve('../dnb-ui-tags.scss')) | ||
|
||
it('should contain ".dnb-core-style blockquote"', () => { | ||
expect(scss).toContain('.dnb-core-style blockquote') | ||
}) | ||
|
||
it('should contain ".dnb-core-style ul"', () => { | ||
expect(scss).toContain('.dnb-core-style ul') | ||
}) | ||
}) |
38 changes: 38 additions & 0 deletions
38
packages/dnb-eufemia/src/style/themes/theme-ui/dnb-ui-tags.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* HTML Element Tags | ||
* | ||
*/ | ||
|
||
@use '../../../elements/anchor/style/anchor-mixins.scss'; | ||
@use '../../elements/blockquote.scss'; | ||
@use '../../elements/typography.scss'; | ||
@use '../../elements/lists.scss'; | ||
@use '../../elements/label.scss'; | ||
@use '../../elements/form.scss'; | ||
@use '../../elements/code.scss'; | ||
@use '../../elements/image.scss'; | ||
@use '../../elements/hr.scss'; | ||
|
||
.dnb-core-style { | ||
// div | ||
@include anchor-mixins.anchorTag(); | ||
@include image.imageTag(); | ||
@include blockquote.blockquoteTag(); | ||
@include hr.hrTag(); | ||
|
||
// typography | ||
@include typography.typographyTags(); | ||
|
||
// lists | ||
@include lists.ulTag(); | ||
@include lists.olTag(); | ||
@include lists.dlTag(); | ||
|
||
// form | ||
@include form.formTag(); | ||
@include label.labelTag(); | ||
|
||
// additional | ||
@include code.codeTag(); | ||
@include code.preTag(); | ||
} |