-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tabs component [SRED-67] (#340)
- Loading branch information
1 parent
5a6785b
commit 93bdc36
Showing
29 changed files
with
22,601 additions
and
31,382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
build.washingtonpost.com/public/img/components/tabs/anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import JsDomEnv from "jest-environment-jsdom"; | ||
|
||
class CustomEnvironment extends JsDomEnv { | ||
async setup() { | ||
await super.setup(); | ||
this.global.DOMRect = class DOMRect { | ||
bottom = 0; | ||
left = 0; | ||
right = 0; | ||
top = 0; | ||
constructor( | ||
public x = 0, | ||
public y = 0, | ||
public width = 0, | ||
public height = 0 | ||
) {} | ||
static fromRect(other?: DOMRectInit): DOMRect { | ||
return new DOMRect(other?.x, other?.y, other?.width, other?.height); | ||
} | ||
toJSON() { | ||
return JSON.stringify(this); | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = CustomEnvironment; |
Oops, something went wrong.
93bdc36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
wpds-ui-kit-vitejs-example – ./apps/vite-project
wpds-ui-kit-vitejs-example-git-main.preview.now.washingtonpost.com
wpds-ui-kit-vitejs-example.preview.now.washingtonpost.com
93bdc36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
wpds-ui-kit-vitejs-v2-example – ./apps/vite-v2-project
wpds-ui-kit-vitejs-v2-example.preview.now.washingtonpost.com
wpds-ui-kit-viteks-v2-example.preview.now.washingtonpost.com
wpds-ui-kit-vitejs-v2-example-git-main.preview.now.washingtonpost.com
93bdc36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
wpds-ui-kit – ./build.washingtonpost.com
wpds-ui-kit-git-main.preview.now.washingtonpost.com
wpds-ui-kit.preview.now.washingtonpost.com
build.washingtonpost.com
93bdc36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
wpds-ui-kit-storybook – ./
wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com
wpds-ui-kit-storybook.preview.now.washingtonpost.com