Skip to content

Commit

Permalink
fix: rename with-uikit-play-pause-button to with-play-pause-button
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmch committed Sep 29, 2023
1 parent bf2b932 commit 02fdeb3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/blocks/Media/__stories__/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"ariaLabel": "Video accessible name example",
"controls": "custom",
"customControlsOptions": {
"type": "with-uikit-play-pause-button",
"type": "with-play-pause-button",
"muteButtonShown": false,
"backgroundShadowHidden": true,
"positioning": "left"
Expand All @@ -152,7 +152,7 @@
"ariaLabel": "Video accessible name example",
"controls": "custom",
"customControlsOptions": {
"type": "with-uikit-play-pause-button",
"type": "with-play-pause-button",
"muteButtonShown": false,
"backgroundShadowHidden": true,
"positioning": "left"
Expand Down
8 changes: 4 additions & 4 deletions src/components/ReactPlayer/CustomBarControls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $withMuteControlWidth: 32px;
}

&_type {
&_with-uikit-play-pause-button {
&_with-play-pause-button {
gap: $indentXXXS;
padding: $indentXXXS;
}
Expand Down Expand Up @@ -77,7 +77,7 @@ $withMuteControlWidth: 32px;
}
}

&_with-uikit-play-pause-button {
&_with-play-pause-button {
width: $withUikitPlayPauseControlSize;
height: $withUikitPlayPauseControlSize;
border-radius: 50%;
Expand All @@ -96,7 +96,7 @@ $withMuteControlWidth: 32px;

&__play-icon {
&_type {
&_with-uikit-play-pause-button {
&_with-play-pause-button {
height: $withUikitPlayPauseControlIconSize;
width: $withUikitPlayPauseControlIconSize;
color: var(--g-color-base-neutral-heavy);
Expand All @@ -110,7 +110,7 @@ $withMuteControlWidth: 32px;
height: $withMuteControlHeight;
width: $withMuteControlWidth;
}
&_with-uikit-play-pause-button {
&_with-play-pause-button {
height: $withUikitPlayPauseControlIconSize;
width: $withUikitPlayPauseControlIconSize;
color: var(--g-color-base-neutral-heavy);
Expand Down
8 changes: 4 additions & 4 deletions src/components/ReactPlayer/CustomBarControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ const b = block('CustomBarControls');

const playIconsMap = {
[CustomControlsType.WithMuteButton]: null,
[CustomControlsType.WithUiKitPlayPauseButton]: Play,
[CustomControlsType.WithPlayPauseButton]: Play,
};
const pauseIconsMap = {
[CustomControlsType.WithMuteButton]: null,
[CustomControlsType.WithUiKitPlayPauseButton]: Pause,
[CustomControlsType.WithPlayPauseButton]: Pause,
};
const muteIconsMap = {
[CustomControlsType.WithMuteButton]: Mute,
[CustomControlsType.WithUiKitPlayPauseButton]: VolumeLow,
[CustomControlsType.WithPlayPauseButton]: VolumeLow,
};
const unmuteIconsMap = {
[CustomControlsType.WithMuteButton]: Unmute,
[CustomControlsType.WithUiKitPlayPauseButton]: VolumeXmark,
[CustomControlsType.WithPlayPauseButton]: VolumeXmark,
};

interface MuteConfigProps {
Expand Down
2 changes: 1 addition & 1 deletion src/models/constructor-items/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export enum PlayButtonThemes {

export enum CustomControlsType {
WithMuteButton = 'with-mute-button',
WithUiKitPlayPauseButton = 'with-uikit-play-pause-button',
WithPlayPauseButton = 'with-play-pause-button',
}

export enum CustomControlsButtonPositioning {
Expand Down

0 comments on commit 02fdeb3

Please sign in to comment.