Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

[Feature] font-variant-numeric Alignment for numbers in tables #1093

Open

Description

I've tested that this indeed works, for iOS/react-native. Specifically:

<RX.Text style={ { fontVariant: ["tabular-mums"] } as any }>

How would one go about writing the ReactXP Stylesheet support for this?

Activity

  1. erictraut commented on May 22, 2019

    @erictraut
    Contributor

    If this is supported in a compatible manner on browsers and RN, then it makes sense to add it to ReactXP. Are you interested in making a contribution?

    I presume this attribute would apply to Text and Link. What about TextInput? The answer to that question determines where it should be added.

    Since the HTML attribute name differs ("font-variant-numeric" versus "font-variant"), there will need to be some translation logic added to the web Styles.ts code. There are several other cases where we need to do similar translations, so that should be straightforward.

    If you implement this, please make sure to do so for web and RN paths, add to the documentation, and add to the RXPTest app (which acts as our unit tests for all features).

  2. fbartho commented on Aug 9, 2020

    @fbartho
    ContributorAuthor

    I am indeed interested in contributing this feature. I will take a look at Styles.ts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions