@atelic-action/ui 3.12.0 → 3.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chrome/SiteMenu.tsx +9 -2
- package/src/styles/chrome.css +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atelic-action/ui",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"description": "Shared UI for the Atelic templates: site chrome, base styles, the component library, the access gate, and the app shell they install",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
package/src/chrome/SiteMenu.tsx
CHANGED
|
@@ -104,15 +104,22 @@ export function SiteMenu({
|
|
|
104
104
|
function ContactBlock({ contact: { phone, email, address } }: { contact: MenuContact }) {
|
|
105
105
|
return (
|
|
106
106
|
<div className="mm-contact">
|
|
107
|
+
{/* The number and the address are the two things a phone can act on, so
|
|
108
|
+
each is a real link: a tel link dials, a mailto opens mail. Protocol
|
|
109
|
+
links never open a new tab (rule 12). Plain text here read as friction. */}
|
|
107
110
|
{phone && (
|
|
108
111
|
<>
|
|
109
|
-
|
|
112
|
+
<a className="mm-contact-link" href={`tel:${phone.e164}`}>
|
|
113
|
+
CALL / TEXT {phone.display}
|
|
114
|
+
</a>
|
|
110
115
|
<br />
|
|
111
116
|
</>
|
|
112
117
|
)}
|
|
113
118
|
{email && (
|
|
114
119
|
<>
|
|
115
|
-
{email}
|
|
120
|
+
<a className="mm-contact-link" href={`mailto:${email}`}>
|
|
121
|
+
{email}
|
|
122
|
+
</a>
|
|
116
123
|
<br />
|
|
117
124
|
</>
|
|
118
125
|
)}
|
package/src/styles/chrome.css
CHANGED
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
letter-spacing: 0.04em;
|
|
322
322
|
line-height: 1.9;
|
|
323
323
|
}
|
|
324
|
+
/* The phone and email lines are links that read as the block's own text:
|
|
325
|
+
no colour change, no underline, the tap is the affordance. */
|
|
326
|
+
.atelic-ui .mobile-menu .mm-contact-link {
|
|
327
|
+
color: inherit;
|
|
328
|
+
text-decoration: none;
|
|
329
|
+
}
|
|
324
330
|
|
|
325
331
|
/* ---- Sticky CTA bar (phones only) ---- */
|
|
326
332
|
.atelic-ui .sticky-cta {
|