Skip to content

Commit

Permalink
feat(List,Block): add hairlines prop
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 19, 2021
1 parent c4706b0 commit f6ac793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/react/components/Block.jsx
Expand Up @@ -12,6 +12,8 @@ const Block = (props) => {
inset,
nested,

hairlines = true,

ios,
material,

Expand Down Expand Up @@ -41,7 +43,7 @@ const Block = (props) => {
},
strong: {
common: `py-4 ${colors.strongBg} ${
!inset && !nested ? 'hairline-t hairline-b' : ''
!inset && !nested && hairlines ? 'hairline-t hairline-b' : ''
}`,
},
inset: {
Expand Down
6 changes: 4 additions & 2 deletions src/react/components/List.jsx
Expand Up @@ -12,6 +12,8 @@ const List = (props) => {
nested,
menuList,

hairlines = true,

ios,
material,

Expand All @@ -38,8 +40,8 @@ const List = (props) => {
const c = themeClasses({
base: {
common: `${!nested ? 'my-8' : ''} ${colors.bg} ${
!inset && !nested ? 'hairline-t hairline-b' : ''
} relative last-child:no-hairlines`,
!inset && !nested && hairlines ? 'hairline-t hairline-b' : ''
} relative last-child:hairline-b-none`,
ios: ``,
material: ``,
},
Expand Down

0 comments on commit f6ac793

Please sign in to comment.