Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@OEvgeny
Copy link
Collaborator

@OEvgeny OEvgeny commented May 4, 2022

Description

  • Upgrade WebChat packages to fix accessibility issues
  • Upgrade emotion due to WebChat emotion bump
  • Refactor codebase to meet emotion@11 requirements
  • Include required types for tsc to pass type checks

#minor

@OEvgeny OEvgeny force-pushed the a11y/webchat branch 3 times, most recently from 5e6900f to 7667a35 Compare May 4, 2022 20:43
@coveralls
Copy link

coveralls commented May 4, 2022

Coverage Status

Coverage remained the same at 55.871% when pulling f505742 on OEvgeny:a11y/webchat into 191f567 on microsoft:main.

* Upgrade WebChat packages to fix accessibility issues
* Upgrade emotion due to WebChat emotion bump
* Refactor codebase to meet `emotion@11` requirements
* Include required types for tsc to pass type checks
import React, { ReactNode } from 'react';

interface OffsetContainerProps {
interface OffsetContainerProps extends React.HTMLAttributes<HTMLElement> {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since v11 emotion removed css property from component props. See here: https://github.dev/emotion-js/emotion/blob/71ca9be3368ddb0a95ef5b2db7a97c67ab440593/packages/react/types/jsx-namespace.d.ts#L33

There are workarounds for turning it on for all components globally, but all of them assume either react@17 or babel transform or a single tsconfig.json.

So, adding generic html element props directly to the props interface seems like a best fix for the issue at this point

@tonyanziano tonyanziano merged commit 3b608f2 into microsoft:main May 19, 2022
@OEvgeny OEvgeny deleted the a11y/webchat branch May 19, 2022 18:27
@cwhitten cwhitten mentioned this pull request Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants