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

Cannot add styles for Single Value #32

Open
DragosIvan opened this issue Nov 24, 2021 · 1 comment
Open

Cannot add styles for Single Value #32

DragosIvan opened this issue Nov 24, 2021 · 1 comment

Comments

@DragosIvan
Copy link

DragosIvan commented Nov 24, 2021

Hello,

Unless I'm mistaken, there is no way to add styles for the Single Value component. Based on the source code:

const SINGLE_VALUE_BASE_STYLE = css`
  top: 50%;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  box-sizing: border-box;
  text-overflow: ellipsis;
  transform: translateY(-50%);
`;

const SingleValue = styled.div`
  ${SINGLE_VALUE_BASE_STYLE}
  max-width: calc(100% - 0.5rem);
`;

There is no theme extension for Single Value. What I'm trying to achieve is to change to "top" property, basically.

Screenshot 2021-11-24 at 20 07 01

Notice the position of the Label and Input value vs. the Single Value position.

Thank you!

@DragosIvan
Copy link
Author

Also, cannot modify the options with the exception of a few properties.

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

No branches or pull requests

1 participant