Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

React - emotion props, CSS condition with props.theme

0 votes
22 views
added May 6 in React by lcjr Second Warrant Officer (5,520 points)
const DropDownListContainer = styled.div`
  position: absolute;
  // right: -2px;
  right: ${props => props.theme.type === "theme2" ? '73px' : '-2px'};
  z-index: 100;
  width: 200px;
  height: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  &::-webkit-scrollbar {
    display: none;
  }
`;

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...