Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(docs): RTL and Theme it buttons #2020

Merged
merged 2 commits into from
Oct 10, 2019
Merged

fix(docs): RTL and Theme it buttons #2020

merged 2 commits into from
Oct 10, 2019

Conversation

miroslavstastny
Copy link
Member

Fixes #1997

Hide unused variables still does not work as it would require to pass unresolved styles and component variables to Fela and we removed that in #1957.

Performance wins over docs => Hide unused variables (temporarily) removed from docs.

@@ -37,7 +36,7 @@ const ComponentExampleVariables: React.FunctionComponent<
const { onChange, overriddenVariables, usedVariables } = props

const { theme } = React.useContext<ProviderContextPrepared>(ThemeContext)
const [hideUnused, setHideUnused] = React.useState(true)
const [hideUnused] = React.useState(true)
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this just temporary and we want to invest into finding a way hot to do it or should we remove this completely? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Let's hide this temporary and see what we can do later

@codecov
Copy link

codecov bot commented Oct 9, 2019

Codecov Report

Merging #2020 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #2020   +/-   ##
======================================
  Coverage    75.8%   75.8%           
======================================
  Files         160     160           
  Lines        5572    5572           
  Branches     1631    1631           
======================================
  Hits         4224    4224           
  Misses       1334    1334           
  Partials       14      14
Impacted Files Coverage Δ
packages/react/src/lib/renderComponent.tsx 84.05% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2f6c821...409a3d7. Read the comment docs.

@@ -223,6 +223,7 @@ const renderComponent = <P extends {}>(
const direction = rtl ? 'rtl' : 'ltr'
const felaParam = {
theme: { direction },
displayName, // does not affect styles, only used by useEnhancedRenderer
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
displayName, // does not affect styles, only used by useEnhancedRenderer
displayName, // does not affect styles, only used by useEnhancedRenderer in doc site

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme it and RTL buttons not work in the components documentation
2 participants