Skip to content

Commit bd97c46

Browse files
Luis Morales-NavarroMathuraMG
authored andcommitted
Moved CSS to library and removed section from file.js (#2)
* Remove gitmodule (processing#509) * remove git modules * removed submodule and replaced interceptor for library * removed submodule and replaced interceptor for library (processing#510) * deleted comments * deleted jquery * deleted interceptor folder * delete interceptor * added jquery * removed jquery and updated accessible library cdn * Fixes processing#508 (processing#539) * removed submodule and replaced interceptor for library * deleted comments * deleted jquery * deleted interceptor folder * delete interceptor * added jquery * removed jquery and updated accessible library cdn * remove empty divs from files.js * fix merge error * remove empty divs from files.js * Fixes processing#508 (processing#545) * removed submodule and replaced interceptor for library * deleted comments * deleted jquery * deleted interceptor folder * delete interceptor * added jquery * removed jquery and updated accessible library cdn * remove empty divs from files.js * fix merge error * remove empty divs from files.js * moved accessible output css * removed css, added aria-label, preliminary cdn update * removed section from iframe * updated cdn
1 parent b829d3a commit bd97c46

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

client/modules/IDE/components/PreviewFrame.jsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,11 @@ class PreviewFrame extends React.Component {
205205
];
206206
const accessiblelib = sketchDoc.createElement('script');
207207
accessiblelib.setAttribute(
208-
'src', 'https://cdn.rawgit.com/MathuraMG/p5-accessibility/9cb5bd0b/dist/p5-accessibility.js'
208+
'src', 'https://cdn.rawgit.com/MathuraMG/p5-accessibility/298ccdf6/dist/p5-accessibility.js'
209209
);
210210
const accessibleOutputs = sketchDoc.createElement('section');
211211
accessibleOutputs.setAttribute('id', 'accessible-outputs');
212-
accessibleOutputs.style.position = 'absolute';
213-
accessibleOutputs.style.left = '-1000px';
214-
accessibleOutputs.style.top = 'auto';
215-
accessibleOutputs.style.width = '1px';
216-
accessibleOutputs.style.height = '1px';
217-
accessibleOutputs.style.overflow = 'hidden';
212+
accessibleOutputs.setAttribute('aria-label', 'accessible-output');
218213
if (this.props.textOutput) {
219214
sketchDoc.body.appendChild(accessibleOutputs);
220215
sketchDoc.body.appendChild(accessiblelib);

client/modules/IDE/reducers/files.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ const defaultHTML =
2121
2222
</head>
2323
<body>
24-
<section aria-label='accessible output' id='accessible-outputs'></section>
2524
<script src="sketch.js"></script>
26-
</body>
25+
</body>
2726
</html>
2827
`;
2928

0 commit comments

Comments
 (0)