Skip to content

Commit

Permalink
fix: do not force all visible form components to be block
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci authored and lo5 committed Oct 26, 2020
1 parent 0f0d2de commit 218c3d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion py/examples/stepper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Stepper
# Form / Stepper
# Use Stepper to show progress through numbered steps.
# ---
from h2o_wave import Q, listen, ui
Expand Down
5 changes: 4 additions & 1 deletion ui/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const
rgba = (r: U, g: U, b: U, a: F) => `rgba(${r},${g},${b},${a.toFixed(1)})`,
gray = (b: U) => { const h = b.toString(16); return `#${h}${h}${h}` },
centerMixin = () => ({ display: 'flex', alignItems: 'center', justifyContent: 'center' }),
displayMixin = (visible = true): React.CSSProperties => ({ display: visible ? 'inherit' : 'none' })
displayMixin = (visible = true): React.CSSProperties => {
if (visible) return {}
return { display: 'none' }
}

const
black: RGB = { r: 0, g: 0, b: 0 },
Expand Down

0 comments on commit 218c3d3

Please sign in to comment.