Content attributes / SSR hints #1594
bennypowers
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
@bennypowers would you see this as being an additional option, or would it replace the current:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that SSR is looking plausible in the near-to-mid-term, I'd like to discuss adding what I'll call content attributes and/or properties to some of our components. We've already adopted this practice in PFE owing to the more app-dev-oriented approach there, and I'd like to import the idea to RHDS.
Here's a simple example of what I mean:
Today you write:
And you get:
And the user sees:
Content ->
Tomorrow you'll have the option to write that as
And you'll get
And the user sees:
Content ->
In the case of CTA, there would surely be T's to cross and I's to dot, especially regarding analytics data attrs, link targets, etc, but that's for a later discussion
This is also relevant to more complex elements like footer. imagine this hypothetical ssr/spa scenario:
Beta Was this translation helpful? Give feedback.
All reactions