diff --git a/README.md b/README.md index 37da25140..1d40e656a 100644 --- a/README.md +++ b/README.md @@ -279,12 +279,13 @@ You can toggle the presenter or overview mode by pressing respectively `alt+p` a | Alt/Option + P | Toggle Presenter Mode | | Alt/Option + T | Toggle Timer in Presenter Mode | | Alt/Option + A | Start autoplay (if enabled) | +| Alt/Option + F | Toggle Fullscreen Mode | ## Fullscreen -Fullscreen can be toggled via browser options, or by hovering over the bottom right corner of your window until the fullscreen icon appears and clicking it. +Fullscreen can be toggled via browser options, Alt/Option + F, or by pressing the button in the bottom right corner of your window. @@ -484,6 +485,7 @@ The Deck tag is the root level tag for your presentation. It supports the follow | onStateChange | PropTypes.func | Called whenever a new slide becomes visible with the arguments `(previousState, nextState)` where state refers to the outgoing and incoming ``'s `state` props, respectively. The default implementation attaches the current state as a class to the document root. | see description | | history | PropTypes.object | Accepts custom configuration for [history](https://github.com/ReactTraining/history). | | | progress | PropTypes.string | Accepts `pacman`, `bar`, `number` or `none`. To override the color, change the 'quaternary' color in the theme. | `pacman` | +| showFullscreenControl | PropTypes.bool | Show the fullscreen control button in bottom right of the screen. | `true` | | theme | PropTypes.object | Accepts a theme object for styling your presentation. | | | transition | PropTypes.array | Accepts `slide`, `zoom`, `fade` or `spin`, and can be combined. Sets global slide transitions. **Note: If you use the 'scale' transition, fitted text won't work in Safari.** | | | transitionDuration | PropTypes.number | Accepts integer value in milliseconds for global transition duration. | `500` | diff --git a/index.d.ts b/index.d.ts index 390b87ac1..b5cf0bf67 100644 --- a/index.d.ts +++ b/index.d.ts @@ -160,6 +160,7 @@ declare module 'spectacle' { controls?: boolean; globalStyles?: boolean; history?: any; // Needs a type, see https://github.com/ReactTraining/history + showFullscreenControl?: boolean; onStateChange?: (previousState?: string, nextState?: string) => void; progress?: progressType; theme?: Theme; diff --git a/src/components/__snapshots__/component-playground.test.js.snap b/src/components/__snapshots__/component-playground.test.js.snap index 50a063cd5..a3c7cf3c4 100644 --- a/src/components/__snapshots__/component-playground.test.js.snap +++ b/src/components/__snapshots__/component-playground.test.js.snap @@ -21,14 +21,10 @@ exports[` Should render the dark theme correctly 1`] = ` class="css-1a7vuu6 ev51h780" > - @@ -557,14 +553,10 @@ exports[` Should render the light theme correctly 1`] = ` class="css-1a7vuu6 ev51h780" > - @@ -1093,14 +1085,10 @@ exports[` Should render with a custom background color 1` class="css-1a7vuu6 ev51h780" > - @@ -1629,14 +1617,10 @@ exports[` Should render with a custom code block 1`] = ` class="css-1a7vuu6 ev51h780" > - diff --git a/src/components/__snapshots__/fullscreen.test.js.snap b/src/components/__snapshots__/fullscreen.test.js.snap index 967116891..eaccf3114 100644 --- a/src/components/__snapshots__/fullscreen.test.js.snap +++ b/src/components/__snapshots__/fullscreen.test.js.snap @@ -1,40 +1,36 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` should render correctly. 1`] = ` - +