@@ -17,20 +17,18 @@ interface Props {
1717const { starterCode, challenge } = Astro .props ;
1818
1919const resolvedChallenge = challenge
20- ? {
20+ ? ( {
2121 ... challenge ,
22-
2322 successHref: challenge .successHref
2423 ? withBase (challenge .successHref )
2524 : undefined ,
26-
2725 dataset: challenge .dataset
2826 ? {
2927 ... challenge .dataset ,
3028 source: withBase (challenge .dataset .source ),
3129 }
3230 : undefined ,
33- }
31+ } satisfies Challenge )
3432 : undefined ;
3533---
3634
@@ -48,13 +46,9 @@ const resolvedChallenge = challenge
4846 data-expanded =" false"
4947 >
5048 <PythonEditorHeader />
51-
5249 <PythonErrorHelp />
53-
5450 <PythonEditorWorkspace />
55-
5651 <PythonEditorActions />
57-
5852 <PythonTerminal />
5953 </div >
6054
@@ -63,7 +57,9 @@ const resolvedChallenge = challenge
6357 src ={ withBase (" /python-runner.html" )}
6458 sandbox =" allow-scripts"
6559 referrerpolicy =" no-referrer"
66- class =" hidden"
60+ tabindex =" -1"
61+ aria-hidden =" true"
62+ hidden
6763 data-python-runner ></iframe >
6864</div >
6965
@@ -72,78 +68,3 @@ const resolvedChallenge = challenge
7268
7369 initializePythonEditors();
7470</script >
75-
76- <style >
77- [data-python-editor-shell][data-expanded="true"] {
78- position: fixed;
79- z-index: 100;
80- inset: 1rem;
81- display: flex;
82- overflow: hidden;
83- flex-direction: column;
84- background: white;
85- box-shadow: 0 24px 80px
86- color-mix(in srgb, var(--color-ink) 30%, transparent);
87- }
88-
89- [data-python-editor-shell][data-expanded="true"] [data-python-workspace] {
90- min-height: 18rem;
91- flex: 1;
92- overflow: hidden;
93- }
94-
95- [data-python-editor-shell][data-expanded="true"] [data-python-code-panel] {
96- height: 100%;
97- min-height: 0;
98- }
99-
100- [data-python-editor-shell][data-expanded="true"] [data-python-code] {
101- height: 100%;
102- }
103-
104- [data-python-editor-shell][data-expanded="true"] [data-python-results] {
105- display: flex;
106- max-height: 42dvh;
107- min-height: 15rem;
108- flex-direction: column;
109- }
110-
111- [data-python-editor-shell][data-expanded="true"]
112- [data-python-terminal-content] {
113- min-height: 0;
114- flex: 1;
115- overflow: auto;
116- }
117-
118- [data-python-editor-shell][data-expanded="true"]
119- [data-python-terminal-panel] {
120- min-height: 100%;
121- }
122-
123- [data-python-editor-shell][data-expanded="true"]
124- [data-python-editor-expand-icon] {
125- transform: scale(0.82) rotate(180deg);
126- }
127-
128- @media (max-width: 39.999rem) {
129- [data-python-editor-shell][data-expanded="true"] {
130- inset: 0;
131- border: 0;
132- }
133-
134- [data-python-editor-shell][data-expanded="true"] [data-python-workspace] {
135- min-height: 14rem;
136- }
137-
138- [data-python-editor-shell][data-expanded="true"] [data-python-results] {
139- max-height: 48dvh;
140- min-height: 13rem;
141- }
142- }
143-
144- @media (prefers-reduced-motion: reduce) {
145- [data-python-editor-expand-icon] {
146- transition: none;
147- }
148- }
149- </style >
0 commit comments