Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Text): style property #1681

Merged
merged 1 commit into from
Jun 28, 2024
Merged
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
7 changes: 3 additions & 4 deletions src/components/Text/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import type {QAProps} from '../types';
import type {DOMProps, QAProps} from '../types';

import {colorText} from './colorText/colorText';
import type {ColorTextBaseProps} from './colorText/colorText';
Expand All @@ -10,14 +10,13 @@ import type {TextBaseProps} from './text/text';
export interface TextProps<C extends React.ElementType = 'span'>
extends Omit<TextBaseProps, 'ellipsisLines'>,
ColorTextBaseProps,
QAProps {
QAProps,
DOMProps {
/**
* Ability to override default html tag
*/
as?: C;
ellipsisLines?: number;
className?: string;
styles?: React.CSSProperties;
}

type TextRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref'];
Expand Down
Loading