Skip to content

Commit

Permalink
Replaced all the css into tailwind css on ScreenReaderOnly component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 4, 2023
1 parent 33ed32b commit b995c61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions components/ScreenReaderOnly/ScreenReaderOnly.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { node } from 'prop-types';
import { SCREEN_READER_ONLY } from 'common/constants/testIDs';
import styles from './ScreenReaderOnly.module.css';

export const toggleMessages = {
open: 'Show more',
Expand All @@ -13,7 +12,7 @@ ScreenReaderOnly.propTypes = {

function ScreenReaderOnly({ children }) {
return (
<span className={styles.ScreenReaderOnly} data-testid={SCREEN_READER_ONLY}>
<span className="sr-only" data-testid={SCREEN_READER_ONLY}>
{children}
</span>
);
Expand Down
10 changes: 0 additions & 10 deletions components/ScreenReaderOnly/ScreenReaderOnly.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Array [
Content never displayed, but it is rendered
</span>,
<span
className="ScreenReaderOnly"
className="sr-only"
data-testid="SCREEN_READER_ONLY"
>
ScreenReader content
Expand Down

2 comments on commit b995c61

@vercel
Copy link

@vercel vercel bot commented on b995c61 Nov 4, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on b995c61 Nov 4, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.