-
Notifications
You must be signed in to change notification settings - Fork 216
docs: add Map component style variants and properties #4892
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| --- | ||
| title: Styling | ||
| page-title: How to style the Map component | Vaadin components | ||
| description: Styling API reference for the Map component. | ||
| meta-description: Customize the appearance of the Vaadin Map component to align with your application's theme. | ||
| order: 50 | ||
| --- | ||
| = Map Styling | ||
|
|
||
| == Style Variants | ||
|
|
||
| [cols="1,3,1"] | ||
| |=== | ||
| | Variant | Description | Supported by | ||
|
|
||
| |`no-border` | ||
| |Removes border around the Map component | ||
| |Aura, Lumo | ||
|
|
||
| |=== | ||
|
|
||
| [.example] | ||
| -- | ||
| [source,typescript] | ||
| ---- | ||
| include::{root}/frontend/demo/component/map/map-no-border.ts[preimport,hidden] | ||
| ---- | ||
|
|
||
| ifdef::flow[] | ||
| [source,java] | ||
| ---- | ||
| include::{root}/src/main/java/com/vaadin/demo/component/map/MapNoBorder.java[render,tags=snippet,indent=0,group=Flow] | ||
| ---- | ||
| endif::[] | ||
|
|
||
| -- | ||
|
|
||
|
|
||
| include::../_styling-section-theming-props.adoc[tag=style-properties] | ||
|
|
||
| [cols="2,1"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Several icons are not in base styles / Aura:
Though it looks like they should be, given that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, created a PR: vaadin/web-components#10576 |
||
| |=== | ||
| | Property | Supported by | ||
|
|
||
| |`--vaadin-map-border-color` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-border-radius` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-control-size` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-controls-inset` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-attribution-collapse` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-attribution-expand` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-close` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-compass` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-fullscreen` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-overview-map-collapse` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-overview-map-expand` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-zoom-in` | ||
| |Aura, Lumo | ||
|
|
||
| |`--vaadin-map-icon-zoom-out` | ||
| |Aura, Lumo | ||
|
|
||
| |=== | ||
|
|
||
|
|
||
| include::../_styling-section-intros.adoc[tag=selectors] | ||
|
|
||
|
|
||
| Root element:: `vaadin-map` | ||
|
|
||
| === States | ||
|
|
||
| Focused:: `vaadin-map+++<wbr>+++**[focused]**` | ||
| Keyboard Focused:: `vaadin-map+++<wbr>+++**[focus-ring]**` | ||
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.
Nit: Maybe add an intro sentence as in other component pages.
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.
Done.