hirosystems/ui

Using `as="h1"` results in ignored fontSize

kyranjamie opened this issue · 0 comments

const StackingTitle: FC = ({ children }) => (
  <Text as="h1" display="block" textStyle="display.large" fontSize="40px">
    {children}
  </Text>
);

In this example component fontSize is ignored, owing to the defaults set implicitly for a h1