Skip to content

Commit

Permalink
fix(scale): better
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-gomez-axa committed Jan 24, 2024
1 parent 53708d7 commit fe9b0be
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -978,21 +978,21 @@ <h2>Utiliser les scénarios type</h2><span class="file">src/pages/People/People/
import { serverUseGet } from 'shared/testsUtils/msw';
import People from '..';
...
const tableAriaLabel = 'Tableau des gens';
const tableItemsType = 'membres';
and('la page reçoit les données suivantes', responseBody =&gt; {
serverUseGet&lt;TPeopleData[]&gt;({ route: 'people', responseBody }); // le typage sera fait juste après
});
...
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableAriaLabel);
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableItemsType);
LeTableauPresenteDesEntetesDeColonnesDansLOrdreSuivant(
and,
/^le tableau présente des entêtes de colonnes dans l’ordre suivant : &quot;(.*)&quot;, &quot;(.*)&quot;, &quot;(.*)&quot;, &quot;(.*)&quot;$/,
tableAriaLabel,
tableItemsType,
);
LeTableauContientLesLignesCorrespondantAuxDonneesRecues(
and,
/^le tableau contient (\d+) lignes avec (\d+) colonnes dans l'ordre suivant :$/,
tableAriaLabel,
tableItemsType,
);</code>
<textarea class="sg-code-input">...
import {
Expand All @@ -1005,21 +1005,21 @@ <h2>Utiliser les scénarios type</h2><span class="file">src/pages/People/People/
import { serverUseGet } from 'shared/testsUtils/msw';
import People from '..';
...
const tableAriaLabel = 'Tableau des gens';
const tableItemsType = 'membres';
and('la page reçoit les données suivantes', responseBody =&gt; {
serverUseGet&lt;TPeopleData[]&gt;({ route: 'people', responseBody }); // le typage sera fait juste après
});
...
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableAriaLabel);
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableItemsType);
LeTableauPresenteDesEntetesDeColonnesDansLOrdreSuivant(
and,
/^le tableau présente des entêtes de colonnes dans l’ordre suivant : &quot;(.*)&quot;, &quot;(.*)&quot;, &quot;(.*)&quot;, &quot;(.*)&quot;$/,
tableAriaLabel,
tableItemsType,
);
LeTableauContientLesLignesCorrespondantAuxDonneesRecues(
and,
/^le tableau contient (\d+) lignes avec (\d+) colonnes dans l'ordre suivant :$/,
tableAriaLabel,
tableItemsType,
);</textarea></pre>
</section>
<section class="sg-exo1-api-url" id="exo1-api-url" data-background="" data-background-transition="fade" data-auto-animate="data-auto-animate">
Expand Down
4 changes: 4 additions & 0 deletions pug/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ $color-info-light: #def5ff;
--sg-info-color-light: #{$color-info-light};
}

.reveal .slides {
scale: 0.8;
}

@import "./scss/mixins.scss";

/* Components */
Expand Down
8 changes: 4 additions & 4 deletions pug/slides/exo1/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,21 +261,21 @@ import {
import { serverUseGet } from 'shared/testsUtils/msw';
import People from '..';
...
const tableAriaLabel = 'Tableau des gens';
const tableItemsType = 'membres';
and('la page reçoit les données suivantes', responseBody => {
serverUseGet<TPeopleData[]>({ route: 'people', responseBody }); // le typage sera fait juste après
});
...
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableAriaLabel);
LaPageContientUnTableau(and, 'la page contient un tableau répertoriant la liste des gens', tableItemsType);
LeTableauPresenteDesEntetesDeColonnesDansLOrdreSuivant(
and,
/^le tableau présente des entêtes de colonnes dans l’ordre suivant : "(.*)", "(.*)", "(.*)", "(.*)"$/,
tableAriaLabel,
tableItemsType,
);
LeTableauContientLesLignesCorrespondantAuxDonneesRecues(
and,
/^le tableau contient (\\d+) lignes avec (\\d+) colonnes dans l'ordre suivant :$/,
tableAriaLabel,
tableItemsType,
);`,
],
unitTestPeople: [
Expand Down
2 changes: 1 addition & 1 deletion pug/slides/exo1/exo1.pug
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
pre.code-wrapper--notes.fragment.fade-in-then-out
+Notes({ notes: notes.people[2], fragment: false })
+Code({ modifier:"no-max-height", content : files.people[5], dataLineNumbers: "13" })
pre.code-wrapper--notes.fragment.fade-in-then-out
pre.code-wrapper--notes.fragment.fade-in-then-out
+Notes({ notes: notes.people[3], fragment: false })
+Code({ modifier:"no-max-height", content : files.people[5], dataLineNumbers: "16,20" })
pre.code-wrapper--notes.fragment.fade-in-then-out
Expand Down

0 comments on commit fe9b0be

Please sign in to comment.