[tablayout]부분 aria-label수정
This commit is contained in:
@@ -1,13 +1,21 @@
|
||||
import React, { useCallback, useEffect, useRef, useState } from "react";
|
||||
import React, {
|
||||
useCallback,
|
||||
useEffect,
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
|
||||
import classNames from "classnames";
|
||||
import compose from "ramda/src/compose";
|
||||
import classNames from 'classnames';
|
||||
import compose from 'ramda/src/compose';
|
||||
|
||||
import { Job } from "@enact/core/util";
|
||||
import { Marquee, MarqueeController } from "@enact/sandstone/Marquee";
|
||||
import Spottable from "@enact/spotlight/Spottable";
|
||||
import { Job } from '@enact/core/util';
|
||||
import {
|
||||
Marquee,
|
||||
MarqueeController,
|
||||
} from '@enact/sandstone/Marquee';
|
||||
import Spottable from '@enact/spotlight/Spottable';
|
||||
|
||||
import css from "./TabItemSub.module.less";
|
||||
import css from './TabItemSub.module.less';
|
||||
|
||||
const SpottableComponent = Spottable("div");
|
||||
const TabItemBase = ({
|
||||
@@ -117,6 +125,7 @@ const TabItemBase = ({
|
||||
|
||||
delete rest.hasChildren;
|
||||
delete rest.getChildren;
|
||||
|
||||
return (
|
||||
<SpottableComponent
|
||||
ref={itemRef}
|
||||
@@ -134,7 +143,9 @@ const TabItemBase = ({
|
||||
spotlightId={spotlightId}
|
||||
aria-label={
|
||||
patncNm
|
||||
? "Selected Channel " + patncNm + " button " + label
|
||||
? selected && path
|
||||
? "Selected Channel " + patncNm + " button " + label
|
||||
: "Channel " + patncNm + " button " + label
|
||||
: title.split("-")[0] + " Button " + label
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user