react-autosuggest icon indicating copy to clipboard operation
react-autosuggest copied to clipboard

Help needed on the theme

Open hklee93 opened this issue 5 years ago • 0 comments

Hi, I'm trying to make the suggestion list grow upward instead of downward, but I just can't seem to find a way to properly make it happen.

When I type "/", the suggestion list looks fine like the following: slash

However, when there's a match, the style breaks: test

Here's the style I've been trying. I'd much appreciate it if I can get at least some hint.

container: {
    position: 'relative' as "relative",
    width: '100%',
  },
suggestionHighlighted: {
    backgroundColor: '#ddd',
    width: '100%',
  },
  suggestionsContainer: {
    display: 'none',
  },
  suggestionsContainerOpen: {
    display: 'block',
    top: '-81px',
    position: 'absolute' as "absolute",
    border: '1px solid #aaa',
    lineHeight: '24px',
    paddingLeft: '8px',
    paddingRight: '8px',
    backgroundColor: '#fff',
  },
  suggestionsList: {
    margin: 0,
    padding: 0,
    listStyleType: 'none',
  },

hklee93 avatar Oct 30 '20 18:10 hklee93