Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

export const DrawerAdditionalSectionAboveContent: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {

export const DrawerBasic: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerBasicInline: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerBasicPill: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerBreakpoint: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerInlinePanelEnd: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerInlinePanelStart: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerModifiedContentPadding: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerModifiedPanelPadding: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerPanelBottom: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerPanelEnd: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerPanelStart: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerBasicPill: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerResizableAtEnd: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerResizableAtStart: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerResizableOnBottom: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

export const DrawerResizableOnInline: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import accessibility from '@patternfly/react-styles/css/utilities/Accessibility/

export const DrawerStatic: React.FunctionComponent = () => {
const [isExpanded, setIsExpanded] = useState(false);
const drawerRef = useRef<HTMLDivElement>(undefined);
const drawerRef = useRef<HTMLSpanElement>(null);

const onExpand = () => {
drawerRef.current && drawerRef.current.focus();
Expand Down
Loading