slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.29k stars 1.35k forks source link

Layout end is stuck in dark theme #1938

Open Chadys opened 2 days ago

Chadys commented 2 days ago

Describe the bug

When you use a "layout: end" on a slide, that slide will be black, no matter if light or dark theme is selected.

This is because in packages/client/layouts/end.vue we explicitely set the classes text-white bg-black, which are not added to any other layout.

Minimal reproduction

Steps to reproduce the behavior:

  1. Just add layout: end to any slide in https://sli.dev/new
  2. That slide will become black

Environment

KermanX commented 2 days ago

I think this is intentional. In Microsoft PowerPoint, in presenting mode, after the last slide, the screen will also become black.