-
Notifications
You must be signed in to change notification settings - Fork 0
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
Modernize layer selector #259
base: main
Are you sure you want to change the base?
Conversation
steveoh
commented
Jul 26, 2024
•
edited
Loading
edited
- make it accessible
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.
Do you want to clean up the old JSX + CSS component?
The SVG doesn't look right on my non-HD screen:
I think that it would be a bummer to make our users click an additional time. Could you keep the hover for desktop and only require a tap for mobile? Or is hovering not accessible?
The checkbox icon looks a little weird to me compared with the react aria default:
); | ||
}; | ||
|
||
export function LayerSelector<T extends object>({ children, ...props }) { |
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.
It would be nice to have some typescript to define the props.
|
||
export default { | ||
content: ['./packages/**/*.{js,jsx,ts,tsx}'], | ||
darkMode: ['class'], | ||
presets: [ugrcTheme], | ||
plugins: [rac], |
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.
Could this be added to the preset? If not, then it needs to be documented.
Sure you could clean up the old one. I'm not sure about the hover. I don't really mind the click. That's pretty common in the other examples I've seen for map layers. We could certainly ship a different component like google for desktop. Yah the icon is different which is why it looks funny. It comes from a different icon library. I noticed the svg looks funny on safari. We could switch to the icons that adobe uses. They have the same icon for the layer selector and a whole lot more. |
ae73a3c
to
bad15dc
Compare
bad15dc
to
0f0d236
Compare