elements
elements copied to clipboard
Contact > email it's not visible
Contact > Email is not showed, just the Contact > URL
I'm using this template, but the email is not appearing on screen:
openapi: 3.0.1
info:
title: My title
summary: My Summary
description: |
My description
contact:
name: API Support Team
email: [email protected]
url: https://google.com
Expected behavior
I what to show to the users my email address
Environment (remove any that are not applicable):
- Library version: [unpkg.com/@stoplight/elements/web-components.min.js]
- OS: [Mac OS Monterey]
- Browser: [Chrome 96.0.4664.110]
- Platform: [web]
Hey. Having a quick look at the code, url
takes precedence over email
. So if you remove url
from the openapi doc, you should see a link pointing to email address.
https://github.com/stoplightio/elements/blob/264e31b280f2f745597715ec4582a49e1f3bfd60/packages/elements-core/src/components/Docs/HttpService/AdditionalInfo.tsx#L13
Unfortunately currently it's either/or situation - either url will be shown or email.
Would this be enough to solve your issue, or do you need to show both?
Hi @mpodlasin
This solves for now, but on documentation this is not clear that is one or other.
But I think that we should have the option to show both, url and email or let to the user to choose if he wants to show one or other or both.
tks
Absolutely agreed. Thus I am leaving this one open.
Hey team! Please add your planning poker estimate with ZenHub @mallachari @mmiask @mpodlasin @Nezteb @paulatulis @wmhilton @domagojk
Hi. I observed a similar issue today. If I use the above sample OpenAPI file and remove the email, nothing will be shown in elements. I would assume, the link will be rendered pointing to the URL.