-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update PlacesDetailPanel with more flexible styling #264
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! (And was a much simpler change than I was anticipating). I think it's probably fine that this is a breaking change, as I don't believe any projects are currently using these components.
Could we add an example of using the component as a Sidebar using Tailwind instead of Semantic UI? This will likely involve adding Tailwind to the storybook
package, but I think that most projects using these components will be using Tailwind, so it will probably be good to have examples.
…ort for multiple geometries; Adding "core_data" middleware
…on_markers RC #261 - Location markers
…-software/react-components into RB-place-detail-modal
Added some Tailwind examples to the Storybook page. @dleadbetter |
Closing and reopening to try to get GitHub to update the file diffs. |
In this PR
core-data/PlacesDetailPanel
component to remove the absolute positioning and fixed width;semantic-ui-react
Sidebar
component andModal
componentNotes
Unsure about the best way to structure this change; as is, it's sort of a breaking change in that existing uses of the panel as a sidebar specifically will need to be updated to actually wrap the component in a sidebar other custom styled component to recover the same behavior. Alternatively we could force backward compatibility by passing some sort of optional
modal
flag as a prop and only apply the updated CSS if that flag is applied, but that seems significantly less elegant. Open to thoughts!