mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(all): inject test styles on flag
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
:root {
|
||||
--ion-font-family: Arial;
|
||||
}
|
||||
15
core/scripts/screenshot/testing.js
Normal file
15
core/scripts/screenshot/testing.js
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
const getStyles = () => {
|
||||
const tag = document.createElement('style');
|
||||
tag.textContent = `
|
||||
:root {
|
||||
--ion-font-family: Arial;
|
||||
}
|
||||
`;
|
||||
return tag;
|
||||
};
|
||||
|
||||
if (window.location.search.indexOf('ionic:_testing=true') > -1) {
|
||||
document.head.appendChild(getStyles());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user