(null);
-
- const isRefresh = useVisualRefresh();
const isCompactMode = useDensityMode(textareaRef) === 'compact';
- const PADDING = isRefresh ? tokens.spaceXxs : tokens.spaceXxxs;
+ const PADDING = tokens.spaceXxs;
const LINE_HEIGHT = tokens.lineHeightBodyM;
useImperativeHandle(
diff --git a/src/radio-group/radio-button.tsx b/src/radio-group/radio-button.tsx
index 7a7a55d1f7..f0efd61d31 100644
--- a/src/radio-group/radio-button.tsx
+++ b/src/radio-group/radio-button.tsx
@@ -9,7 +9,6 @@ import AbstractSwitch from '../internal/components/abstract-switch';
import { useSingleTabStopNavigation } from '../internal/context/single-tab-stop-navigation-context';
import { fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import { RadioGroupProps } from './interfaces';
import styles from './styles.css.js';
@@ -38,7 +37,6 @@ export default React.forwardRef(function RadioButton(
}: RadioButtonProps,
ref: React.Ref
) {
- const isVisualRefresh = useVisualRefresh();
const radioButtonRef = useRef(null);
const mergedRefs = useMergeRefs(radioButtonRef, ref);
@@ -83,10 +81,10 @@ export default React.forwardRef(function RadioButton(
[styles['styled-circle-disabled']]: disabled,
[styles['styled-circle-readonly']]: readOnly,
})}
- strokeWidth={isVisualRefresh ? 12 : 8}
+ strokeWidth={12}
cx={50}
cy={50}
- r={isVisualRefresh ? 44 : 46}
+ r={44}
/>
{
fetchData: () => Promise>;
trackBy: TableProps.TrackBy;
i18nStrings: BasicS3TableStrings;
- isVisualRefresh?: boolean;
visibleColumns: ReadonlyArray;
isItemDisabled: TableProps.IsItemDisabled | undefined;
onSelect: (item: T | undefined) => void;
@@ -80,7 +79,6 @@ export function BasicS3Table({
fetchData,
trackBy,
i18nStrings = {},
- isVisualRefresh,
visibleColumns,
isItemDisabled,
onSelect,
@@ -149,11 +147,11 @@ export function BasicS3Table({
return (
- variant={isVisualRefresh ? 'borderless' : 'container'}
+ variant={'borderless'}
{...collectionProps}
header={
reloadData={reloadData} i18nStrings={i18nStrings} lastUpdated={lastUpdated} />
diff --git a/src/s3-resource-selector/s3-modal/buckets-table.tsx b/src/s3-resource-selector/s3-modal/buckets-table.tsx
index 73f6dec3c6..b40ebcdd04 100644
--- a/src/s3-resource-selector/s3-modal/buckets-table.tsx
+++ b/src/s3-resource-selector/s3-modal/buckets-table.tsx
@@ -18,7 +18,6 @@ interface BucketsTableProps {
selectableItemsTypes: S3ResourceSelectorProps['selectableItemsTypes'];
fetchData: S3ResourceSelectorProps['fetchBuckets'];
i18nStrings: S3ResourceSelectorProps.I18nStrings | undefined;
- isVisualRefresh?: boolean;
onDrilldown: (path: string) => void;
onSelect: (uri: string) => void;
}
@@ -26,7 +25,6 @@ interface BucketsTableProps {
export function BucketsTable({
forwardFocusRef,
i18nStrings,
- isVisualRefresh,
isItemDisabled,
selectableItemsTypes,
fetchData,
@@ -70,7 +68,6 @@ export function BucketsTable({
),
},
}}
- isVisualRefresh={isVisualRefresh}
columnDefinitions={[
{
id: 'Name',
diff --git a/src/s3-resource-selector/s3-modal/index.tsx b/src/s3-resource-selector/s3-modal/index.tsx
index 646531253e..aba02dd7f4 100644
--- a/src/s3-resource-selector/s3-modal/index.tsx
+++ b/src/s3-resource-selector/s3-modal/index.tsx
@@ -7,7 +7,6 @@ import { InternalButton } from '../../button/internal';
import { useInternalI18n } from '../../i18n/context';
import { ForwardFocusRef } from '../../internal/hooks/forward-focus';
import { useEffectOnUpdate } from '../../internal/hooks/use-effect-on-update';
-import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
import InternalModal from '../../modal/internal';
import InternalSpaceBetween from '../../space-between/internal';
import { S3ResourceSelectorProps } from '../interfaces';
@@ -117,8 +116,6 @@ export function S3Modal({
const forwardFocusRef = useRef(null);
const i18n = useInternalI18n('s3-resource-selector');
- const isVisualRefresh = useVisualRefresh();
-
useEffectOnUpdate(() => {
forwardFocusRef.current?.focus();
}, [breadcrumbs]);
@@ -151,7 +148,7 @@ export function S3Modal({
}
>
-
+
dispatch({
type: 'browse-objects',
@@ -205,7 +201,6 @@ export function S3Modal({
isItemDisabled={objectsIsItemDisabled}
selectableItemsTypes={selectableItemsTypes}
i18nStrings={i18nStrings}
- isVisualRefresh={isVisualRefresh}
onDrilldown={item => {
dispatch({
type: item.IsFolder ? 'browse-objects' : 'browse-versions',
@@ -222,7 +217,6 @@ export function S3Modal({
visibleColumns={versionsVisibleColumns}
isItemDisabled={versionsIsItemDisabled}
i18nStrings={i18nStrings}
- isVisualRefresh={isVisualRefresh}
onSelect={item => dispatch({ type: 'select-item', item })}
/>
) : (
diff --git a/src/s3-resource-selector/s3-modal/objects-table.tsx b/src/s3-resource-selector/s3-modal/objects-table.tsx
index 20e544d9b5..80e35d6dbe 100644
--- a/src/s3-resource-selector/s3-modal/objects-table.tsx
+++ b/src/s3-resource-selector/s3-modal/objects-table.tsx
@@ -21,7 +21,6 @@ interface ObjectsTableProps {
selectableItemsTypes: S3ResourceSelectorProps['selectableItemsTypes'];
fetchData: S3ResourceSelectorProps['fetchObjects'];
i18nStrings: S3ResourceSelectorProps.I18nStrings | undefined;
- isVisualRefresh?: boolean;
onDrilldown: (path: S3ResourceSelectorProps.Object) => void;
onSelect: (uri: string) => void;
}
@@ -30,7 +29,6 @@ export function ObjectsTable({
forwardFocusRef,
pathSegments,
i18nStrings,
- isVisualRefresh,
isItemDisabled,
selectableItemsTypes,
fetchData,
@@ -77,7 +75,6 @@ export function ObjectsTable({
),
},
}}
- isVisualRefresh={isVisualRefresh}
visibleColumns={visibleColumns}
isItemDisabled={isItemDisabled || (() => !includes(selectableItemsTypes, 'objects'))}
columnDefinitions={[
diff --git a/src/s3-resource-selector/s3-modal/versions-table.tsx b/src/s3-resource-selector/s3-modal/versions-table.tsx
index 035c0752aa..0508169203 100644
--- a/src/s3-resource-selector/s3-modal/versions-table.tsx
+++ b/src/s3-resource-selector/s3-modal/versions-table.tsx
@@ -18,7 +18,6 @@ interface VersionsTableProps {
isItemDisabled: TableProps.IsItemDisabled | undefined;
fetchData: S3ResourceSelectorProps['fetchVersions'];
i18nStrings: S3ResourceSelectorProps.I18nStrings | undefined;
- isVisualRefresh?: boolean;
onSelect: (versionId: string) => void;
}
@@ -26,7 +25,6 @@ export function VersionsTable({
forwardFocusRef,
pathSegments,
i18nStrings,
- isVisualRefresh,
isItemDisabled,
fetchData,
visibleColumns,
@@ -69,7 +67,6 @@ export function VersionsTable({
),
},
}}
- isVisualRefresh={isVisualRefresh}
visibleColumns={visibleColumns}
isItemDisabled={isItemDisabled}
columnDefinitions={[
diff --git a/src/select/parts/trigger.tsx b/src/select/parts/trigger.tsx
index 0ebd8a1354..425651ada7 100644
--- a/src/select/parts/trigger.tsx
+++ b/src/select/parts/trigger.tsx
@@ -9,7 +9,6 @@ import { OptionDefinition } from '../../internal/components/option/interfaces';
import { FormFieldValidationControlProps } from '../../internal/context/form-field-context';
import { useMergeRefs } from '../../internal/hooks/use-merge-refs';
import { useUniqueId } from '../../internal/hooks/use-unique-id';
-import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
import { joinStrings } from '../../internal/utils/strings';
import { MultiselectProps } from '../../multiselect/interfaces';
import { SelectProps } from '../interfaces';
@@ -51,7 +50,6 @@ const Trigger = React.forwardRef(
}: TriggerProps,
ref: React.Ref
) => {
- const isVisualRefresh = useVisualRefresh();
const generatedId = useUniqueId();
const id = controlId ?? generatedId;
const triggerContentId = useUniqueId('trigger-content-');
@@ -66,7 +64,7 @@ const Trigger = React.forwardRef(
className={clsx(
styles['inline-token-trigger'],
disabled && styles['inline-token-trigger--disabled'],
- isVisualRefresh && styles['visual-refresh']
+ styles['visual-refresh']
)}
>
diff --git a/src/side-navigation/parts.tsx b/src/side-navigation/parts.tsx
index cbf1e4a1d1..f4ffd24c24 100644
--- a/src/side-navigation/parts.tsx
+++ b/src/side-navigation/parts.tsx
@@ -10,7 +10,6 @@ import { ExpandableSectionProps } from '../expandable-section/interfaces';
import InternalExpandableSection from '../expandable-section/internal';
import InternalIcon from '../icon/internal';
import { isPlainLeftClick, NonCancelableCustomEvent } from '../internal/events';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import { checkSafeUrl } from '../internal/utils/check-safe-url';
import { GeneratedAnalyticsMetadataSideNavigationClick } from './analytics-metadata/interfaces';
import { SideNavigationProps } from './interfaces';
@@ -324,7 +323,6 @@ interface SectionProps extends BaseItemComponentProps {
function Section({ definition, activeHref, fireFollow, fireChange, variant, position }: SectionProps) {
const [expanded, setExpanded] = useState(definition.defaultExpanded ?? true);
- const isVisualRefresh = useVisualRefresh();
const onExpandedChange = useCallback(
(e: NonCancelableCustomEvent) => {
@@ -343,11 +341,7 @@ function Section({ definition, activeHref, fireFollow, fireChange, variant, posi
variant="footer"
expanded={expanded}
onChange={onExpandedChange}
- className={clsx(
- styles.section,
- variant === 'section-group' && styles['section--no-ident'],
- isVisualRefresh && styles.refresh
- )}
+ className={clsx(styles.section, variant === 'section-group' && styles['section--no-ident'], styles.refresh)}
headerText={definition.text}
>
!isOpen && onToggle()}
style={{
insetBlockEnd: bottomOffset,
@@ -96,7 +99,7 @@ export function SplitPanelContentBottom({
{header}
-
diff --git a/src/split-panel/implementation.tsx b/src/split-panel/implementation.tsx
index 682b7fddba..5a84c7f2e7 100644
--- a/src/split-panel/implementation.tsx
+++ b/src/split-panel/implementation.tsx
@@ -14,7 +14,6 @@ import { useSplitPanelContext } from '../internal/context/split-panel-context';
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
import { useUniqueId } from '../internal/hooks/use-unique-id';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import globalVars from '../internal/styles/global-vars';
import { SomeRequired } from '../internal/types';
import { createWidgetizedComponent } from '../internal/widgets';
@@ -38,7 +37,6 @@ export function SplitPanelImplementation({
i18nStrings = {},
...restProps
}: SplitPanelImplementationProps) {
- const isRefresh = useVisualRefresh();
const isToolbar = useAppLayoutToolbarEnabled();
const {
@@ -60,7 +58,7 @@ export function SplitPanelImplementation({
const baseProps = getBaseProps(restProps);
const [isPreferencesOpen, setPreferencesOpen] = useState
(false);
- const appLayoutMaxWidth = isRefresh && position === 'bottom' ? contentWidthStyles : undefined;
+ const appLayoutMaxWidth = position === 'bottom' ? contentWidthStyles : undefined;
const openButtonAriaLabel = i18nStrings.openButtonAriaLabel;
useEffect(() => {
@@ -113,9 +111,7 @@ export function SplitPanelImplementation({
{isOpen ? (
>;
}
@@ -234,7 +230,6 @@ export function SplitPanelImplementation({
visible={true}
preferences={{ position }}
disabledSidePosition={position === 'bottom' && isForcedPosition}
- isRefresh={isRefresh}
i18nStrings={{
header: i18nStrings.preferencesTitle,
confirm: i18nStrings.preferencesConfirm,
diff --git a/src/split-panel/preferences-modal.tsx b/src/split-panel/preferences-modal.tsx
index ccc16fb54b..ae88f16b76 100644
--- a/src/split-panel/preferences-modal.tsx
+++ b/src/split-panel/preferences-modal.tsx
@@ -9,9 +9,7 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
import InternalModal from '../modal/internal';
import InternalSpaceBetween from '../space-between/internal';
import InternalTiles from '../tiles/internal';
-import bottomPositionIconClassic from './icons/bottom-icon';
import bottomPositionIconRefresh from './icons/bottom-icon-refresh';
-import sidePositionIconClassic from './icons/side-position';
import sidePositionIconRefresh from './icons/side-position-refresh';
interface PreferencesModali18nStrings {
@@ -32,7 +30,6 @@ interface PreferencesModalProps extends InternalBaseComponentProps {
i18nStrings: PreferencesModali18nStrings;
disabledSidePosition?: boolean;
- isRefresh: boolean;
onConfirm: (preferences: { position: 'side' | 'bottom' }) => void;
onDismiss: () => void;
@@ -79,12 +76,12 @@ export default (props: PreferencesModalProps) => {
items={[
{
label: props.i18nStrings.positionBottom,
- image: props.isRefresh ? bottomPositionIconRefresh : bottomPositionIconClassic,
+ image: bottomPositionIconRefresh,
value: 'bottom',
},
{
label: props.i18nStrings.positionSide,
- image: props.isRefresh ? sidePositionIconRefresh : sidePositionIconClassic,
+ image: sidePositionIconRefresh,
value: 'side',
disabled: props.disabledSidePosition,
},
diff --git a/src/split-panel/side.tsx b/src/split-panel/side.tsx
index 29d0e70779..ccd290e3f4 100644
--- a/src/split-panel/side.tsx
+++ b/src/split-panel/side.tsx
@@ -7,7 +7,6 @@ import { useAppLayoutToolbarEnabled } from '../app-layout/utils/feature-flags';
import { ButtonProps } from '../button/interfaces';
import InternalButton from '../button/internal';
import { useSplitPanelContext } from '../internal/context/split-panel-context';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import { SplitPanelContentProps } from './interfaces';
import sharedStyles from '../app-layout/resize/styles.css.js';
@@ -34,21 +33,26 @@ export function SplitPanelContentSide({
onToggle,
}: SplitPanelContentSideProps) {
const { topOffset, bottomOffset, animationDisabled } = useSplitPanelContext();
- const isRefresh = useVisualRefresh();
const isToolbar = useAppLayoutToolbarEnabled();
return (
)}
& {
display: none;
}
- .drawer-closed:not(.refresh) > & {
- inline-size: constants.$sidebar-size-closed;
- &:hover {
- background: awsui.$color-background-layout-panel-hover;
- }
- }
}
.drawer-content-bottom {
@@ -59,12 +49,6 @@ $app-layout-drawer-width: calc(#{awsui.$space-layout-toggle-diameter} + 2 * #{aw
overflow-y: auto;
border-block-start: awsui.$border-panel-top-width solid awsui.$color-border-divider-panel-bottom;
- &:not(.refresh) {
- // custom shadow because the existing one does not have shadow on top
- box-shadow: awsui.$shadow-split-bottom;
- border-inline-start: awsui.$border-divider-section-width solid awsui.$color-border-divider-panel-bottom;
- border-inline-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-panel-bottom;
- }
&.drawer-closed {
overflow: hidden;
}
diff --git a/src/table/body-cell/td-element.tsx b/src/table/body-cell/td-element.tsx
index 21c35b5490..0875d8398d 100644
--- a/src/table/body-cell/td-element.tsx
+++ b/src/table/body-cell/td-element.tsx
@@ -7,7 +7,6 @@ import { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-too
import { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';
import { useMergeRefs } from '../../internal/hooks/use-merge-refs';
-import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
import { ColumnWidthStyle } from '../column-widths-utils';
import { ExpandToggleButton } from '../expandable-rows/expand-toggle-button';
import { TableProps } from '../interfaces.js';
@@ -100,7 +99,6 @@ export const TableTdElement = React.forwardRef {
const Element = isRowHeader ? 'th' : 'td';
- const isVisualRefresh = useVisualRefresh();
resizableStyle = resizableColumns ? {} : resizableStyle;
@@ -129,7 +127,7 @@ export const TableTdElement = React.forwardRef -1
- ? 'container'
- : variant;
+ const computedVariant = variant;
const hasHeader = !!(header || filter || pagination || preferences);
const hasSelection = !!selectionType;
const hasFooterPagination = isMobile && variant === 'full-page' && !!pagination;
diff --git a/src/table/sticky-scrollbar/sticky-scrollbar.tsx b/src/table/sticky-scrollbar/sticky-scrollbar.tsx
index 9166ea70de..564e5a48b0 100644
--- a/src/table/sticky-scrollbar/sticky-scrollbar.tsx
+++ b/src/table/sticky-scrollbar/sticky-scrollbar.tsx
@@ -5,7 +5,6 @@ import clsx from 'clsx';
import { useIntersectionObserver } from '../../internal/hooks/use-intersection-observer';
import { useMergeRefs } from '../../internal/hooks/use-merge-refs';
-import { useVisualRefresh } from '../../internal/hooks/use-visual-mode';
import { browserScrollbarSize } from '../../internal/utils/browser-scrollbar-size';
import { useStickyScrollbar } from './use-sticky-scrollbar';
@@ -24,7 +23,6 @@ function StickyScrollbar(
{ wrapperRef, tableRef, onScroll, hasStickyColumns }: StickyScrollbarProps,
ref: React.Ref
) {
- const isVisualRefresh = useVisualRefresh();
const scrollbarRef = React.useRef(null);
const scrollbarContentRef = React.useRef(null);
const mergedRef = useMergeRefs(ref, scrollbarRef);
@@ -46,7 +44,7 @@ function StickyScrollbar(
className={clsx(
styles['sticky-scrollbar'],
offsetScrollbar && styles['sticky-scrollbar-offset'],
- isVisualRefresh && styles['is-visual-refresh']
+ styles['is-visual-refresh']
)}
onScroll={onScroll}
data-stuck={!isStickyDetectionVisible}
diff --git a/src/table/sticky-scrollbar/styles.scss b/src/table/sticky-scrollbar/styles.scss
index 56971af7f7..78ded57d6c 100644
--- a/src/table/sticky-scrollbar/styles.scss
+++ b/src/table/sticky-scrollbar/styles.scss
@@ -35,13 +35,6 @@
// We move the scrollbar lower, so it doesn't overlap interactive elements (such as checkboxes or links)
z-index: 799; // Higher than sticky columns (798) and lower than table sticky header (800)
- &:not(.is-visual-refresh) {
- background-color: awsui.$color-background-container-content;
- block-size: 15px;
- margin-block-start: calc(-1 * awsui.$border-divider-section-width); // -1px to compensate for border width
- border-block-start: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
- }
-
&.is-visual-refresh {
// Needed to avoid sticky scrollbar overlapping with interactive elements in VR compact mode
margin-block-start: -5px;
diff --git a/src/tabs/tab-header-bar.tsx b/src/tabs/tab-header-bar.tsx
index 12103ae6ae..2763f54e86 100644
--- a/src/tabs/tab-header-bar.tsx
+++ b/src/tabs/tab-header-bar.tsx
@@ -19,7 +19,6 @@ import {
import { hasModifierKeys, isPlainLeftClick } from '../internal/events';
import useHiddenDescription from '../internal/hooks/use-hidden-description';
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import { KeyCode } from '../internal/keycode';
import { circleIndex } from '../internal/utils/circle-index';
import handleKey from '../internal/utils/handle-key';
@@ -96,8 +95,6 @@ export function TabHeaderBar({
const inlineStartOverflowButton = useRef(null);
const i18n = useInternalI18n('tabs');
- const isVisualRefresh = useVisualRefresh();
-
const containerObjectRef = useRef(null);
const [widthChange, containerMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);
const containerRef = useMergeRefs(containerObjectRef, containerMeasureRef);
@@ -176,7 +173,7 @@ export function TabHeaderBar({
const classes = clsx({
[styles['tabs-header']]: true,
- [styles['tabs-header-with-divider']]: variant === 'default' || isVisualRefresh,
+ [styles['tabs-header-with-divider']]: variant === 'default',
});
const leftButtonClasses = clsx({
@@ -378,7 +375,7 @@ export function TabHeaderBar({
const classes = clsx({
[styles['tabs-tab-link']]: true,
- [styles.refresh]: isVisualRefresh,
+ [styles.refresh]: true,
[styles['tabs-tab-active']]: activeTabId === tab.id && !tab.disabled,
[styles['tabs-tab-focused']]: focusedTabId === tab.id,
[styles['tabs-tab-active']]: isActive,
@@ -389,7 +386,7 @@ export function TabHeaderBar({
const tabHeaderContainerClasses = clsx({
[styles['tabs-tab-header-container']]: true,
- [styles.refresh]: isVisualRefresh,
+ [styles.refresh]: true,
[styles['tabs-tab-active']]: isActive,
[styles['tabs-tab-disabled']]: tab.disabled,
[styles['tabs-tab-focusable']]: !tab.disabled || (tab.disabled && !!tab.disabledReason),
diff --git a/src/tiles/tile.tsx b/src/tiles/tile.tsx
index 2cf42e68f3..a28c72e35c 100644
--- a/src/tiles/tile.tsx
+++ b/src/tiles/tile.tsx
@@ -8,7 +8,6 @@ import { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-too
import { fireNonCancelableEvent } from '../internal/events';
import { useContainerBreakpoints } from '../internal/hooks/container-queries';
import { useMergeRefs } from '../internal/hooks/use-merge-refs';
-import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
import RadioButton from '../radio-group/radio-button';
import { TilesProps } from './interfaces';
@@ -30,7 +29,6 @@ export const Tile = React.forwardRef(
forwardedRef: React.Ref
) => {
const internalRef = useRef(null);
- const isVisualRefresh = useVisualRefresh();
const mergedRef = useMergeRefs(internalRef, forwardedRef);
@@ -42,7 +40,7 @@ export const Tile = React.forwardRef(
{ [styles.selected]: selected },
{ [styles.disabled]: !!item.disabled },
{ [styles.readonly]: readOnly },
- { [styles.refresh]: isVisualRefresh },
+ { [styles.refresh]: true },
styles[`breakpoint-${breakpoint}`]
)}
data-value={item.value}
diff --git a/src/tutorial-panel/components/tutorial-detail-view/index.tsx b/src/tutorial-panel/components/tutorial-detail-view/index.tsx
index cb97a9cb23..9a76b3a40d 100644
--- a/src/tutorial-panel/components/tutorial-detail-view/index.tsx
+++ b/src/tutorial-panel/components/tutorial-detail-view/index.tsx
@@ -6,7 +6,6 @@ import { HotspotContext } from '../../../annotation-context/context';
import InternalBox from '../../../box/internal';
import { InternalButton } from '../../../button/internal';
import { fireNonCancelableEvent } from '../../../internal/events/index';
-import { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';
import InternalSpaceBetween from '../../../space-between/internal';
import { TutorialPanelProps } from '../../interfaces';
import { CongratulationScreen } from './congratulation-screen';
@@ -27,8 +26,6 @@ export default function TutorialDetailView({
onFeedbackClick: TutorialPanelProps['onFeedbackClick'];
i18nStrings: TutorialPanelProps['i18nStrings'];
}) {
- const isRefresh = useVisualRefresh();
-
const onExitTutorial = useCallback(() => {
fireNonCancelableEvent(onExitTutorialHandler, { tutorial });
}, [onExitTutorialHandler, tutorial]);
@@ -50,12 +47,7 @@ export default function TutorialDetailView({
iconName="arrow-left"
/>
-
+
{tutorial.title}
diff --git a/src/tutorial-panel/components/tutorial-list/index.tsx b/src/tutorial-panel/components/tutorial-list/index.tsx
index 8cebfa6bb6..96db001cf7 100644
--- a/src/tutorial-panel/components/tutorial-list/index.tsx
+++ b/src/tutorial-panel/components/tutorial-list/index.tsx
@@ -11,7 +11,6 @@ import { InternalButton } from '../../../button/internal';
import InternalIcon from '../../../icon/internal';
import { fireNonCancelableEvent } from '../../../internal/events/index.js';
import { useUniqueId } from '../../../internal/hooks/use-unique-id/index.js';
-import { useVisualRefresh } from '../../../internal/hooks/use-visual-mode';
import { checkSafeUrl } from '../../../internal/utils/check-safe-url';
import InternalLink from '../../../link/internal';
import InternalLiveRegion from '../../../live-region/internal';
@@ -38,13 +37,11 @@ export default function TutorialList({
}: TutorialListProps) {
checkSafeUrl('TutorialPanel', downloadUrl);
- const isRefresh = useVisualRefresh();
-
return (
<>
-
+
{i18nStrings.tutorialListTitle}
@@ -97,8 +94,6 @@ function Tutorial({
const triggerControldId = useUniqueId();
const headerId = useUniqueId();
- const isRefresh = useVisualRefresh();
-
const onStartTutorial = useCallback(() => {
fireNonCancelableEvent(onStartTutorialEventHandler, { tutorial });
}, [onStartTutorialEventHandler, tutorial]);
@@ -115,7 +110,7 @@ function Tutorial({