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

Modernize layer selector #259

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Modernize layer selector #259

wants to merge 7 commits into from

Conversation

steveoh
Copy link
Member

@steveoh steveoh commented Jul 26, 2024

  • make it accessible

Copy link
Member

@stdavis stdavis left a 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:
image

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:
image

);
};

export function LayerSelector<T extends object>({ children, ...props }) {
Copy link
Member

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],
Copy link
Member

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.

@steveoh
Copy link
Member Author

steveoh commented Jul 26, 2024

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.

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

Successfully merging this pull request may close these issues.

2 participants