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

Make ClickableText.medium the default #1636

Merged
merged 14 commits into from
Feb 13, 2024
Merged

Conversation

tesk9
Copy link
Contributor

@tesk9 tesk9 commented Feb 12, 2024

Context

We've decided to make ClickableText.medium the default size/behavior. (Private) Slack convo on the topic.

This will eliminate the previous default state that we didn't expect to be used much, where the font styles would be inherited, but the clickable would not have "inline" styles applied otherwise.

As part of this PR, I also:

  • updated the Menu example to remove ClickableText.medium lines (the default behavior will compose nicely now)
  • improved the ClickableText example page to make all the states more clear (hopefully -- that's the goal!)

🖼️ What does this change look like?

Before

noredink-ui netlify app_ (5)

After

localhost_8000_ (15)

Component completion checklist

  • I've gone through the relevant sections of the Development Accessibility guide with the changes I made to this component in mind
  • Changes are clearly documented
    • Component docs include a changelog
    • Any new exposed functions or properties have docs
  • Changes extend to the Component Catalog
    • The Component Catalog is updated to use the newest version, if appropriate
    • The Component Catalog example version number is updated, if appropriate
    • Any new customizations are available from the Component Catalog
    • The component example still has:
      • an accurate preview
      • valid sample code
      • correct keyboard behavior
      • correct and comprehensive guidance around how to use the component
  • Changes to the component are tested/the new version of the component is tested
  • Component API follows standard patterns in noredink-ui
    • e.g., as a dev, I can conveniently add an nriDescription
    • and adding a new feature to the component will not require major API changes to the component
  • If this is a new major version of the component, our team has stories created to upgrade all instances of the old component. Here are links to the stories:
    • add your story links here OR just write this is not a new major version
  • Please assign the following reviewers:
    • Someone from your team who can review your PR in full and review requirements from your team's perspective.
    • team-accessibilibats-a11ybats - Someone from this group will review your PR for accessibility and adherence to component library foundations.
    • If there are user-facing changes, a designer. (You may want to direct your designer to the deploy preview for easy review):
      • For writing-related component changes, add Stacey (staceyadams)
      • For quiz engine-related components, add Ravi (ravi-morbia)
      • For a11y-related changes to general components, add Ben (bendansby)
      • For general component-related changes or if you’re not sure about something, add the Design group (NoRedInk/design)

Copy link
Contributor

@charbelrami charbelrami left a comment

Choose a reason for hiding this comment

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

Looks great!

@tesk9 tesk9 merged commit 3112440 into master Feb 13, 2024
8 checks passed
@tesk9 tesk9 deleted the bat/clickable-text-medium-default branch February 13, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants