Skip to content

Commit

Permalink
2.0.13 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Dec 23, 2022
2 parents 70d8ad4 + 6a7f00b commit ba94aa7
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

The following is a curated list of changes in the Enact sandstone module, newest changes on the top.

## [2.0.13] - 2022-12-23

### Fixed

- `sandstone/MediaPlayer.MediaControls` to disable buttons when hidden

## [2.0.12] - 2022-12-13

### Added
Expand Down
4 changes: 3 additions & 1 deletion MediaPlayer/MediaControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ const MediaControlsBase = kind({
actionGuideShowing: ({bottomComponents, children}) => countReactChildren(children) || bottomComponents,
className: ({visible, styler}) => styler.append({hidden: !visible}),
moreButtonsClassName: ({styler}) => styler.join('mediaControls', 'moreButtonsComponents'),
moreComponentsClassName: ({styler, showMoreComponents}) => styler.join({hidden: !showMoreComponents}, 'moreComponents'),
moreComponentsRendered: ({showMoreComponents, moreComponentsRendered}) => showMoreComponents || moreComponentsRendered
},

Expand Down Expand Up @@ -344,6 +345,7 @@ const MediaControlsBase = kind({
showMoreComponents,
moreComponentsRendered,
moreButtonsClassName,
moreComponentsClassName,
actionGuideClassName,
spotlightDisabled,
spotlightId,
Expand All @@ -363,7 +365,7 @@ const MediaControlsBase = kind({
null
}
{moreComponentsRendered ?
<Container spotlightId={moreComponentsSpotlightId} className={css.moreComponents} spotlightDisabled={!showMoreComponents || spotlightDisabled}>
<Container spotlightId={moreComponentsSpotlightId} className={moreComponentsClassName} spotlightDisabled={!showMoreComponents || spotlightDisabled}>
<Container className={moreButtonsClassName} >
{children}
</Container>
Expand Down
6 changes: 6 additions & 0 deletions MediaPlayer/MediaControls.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
.actionGuide {
padding-top: @sand-mediaplayer-controls-actionguide-padding-top;
transition: opacity @sand-mediaplayer-controls-actionguide-time linear;

&.hidden {
opacity: 0;
visibility: hidden;
}
}

Expand All @@ -36,6 +38,10 @@
height: 0px;
opacity: 0;

&.hidden {
visibility: hidden;
}

.moreButtonsComponents {
> * {
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/sandstone",
"version": "2.0.12",
"version": "2.0.13",
"description": "Large-screen/TV support library for Enact, containing a variety of UI components.",
"repository": "https://github.com/enactjs/sandstone",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion samples/sampler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sandstone-sampler",
"version": "2.0.12",
"version": "2.0.13",
"description": "Component and QA samples for Sandstone",
"private": true,
"main": "index.js",
Expand Down

0 comments on commit ba94aa7

Please sign in to comment.