-
Hello good people of the milo community 👋 I think the best thing we can do currently is the following. We map the three button types that milo offers into our most used button types from express. This allows for them to be easily authored. A part of me tells me that the most milo approach would be to dramatically reduce the number of button types allowed in express so we can author only using bold or italic links. I have broached this topic and this was deemed as very unideal from the design part of the team. Curious on your thoughts :) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
Has the consonant team been considered in this? I'd love to route this through them or at least get their input on this. Milo has been established as cross consumer project with milo centralizing shared logic and ideally being the source of truth for most elements. |
Beta Was this translation helpful? Give feedback.
-
Totally agree with @mokimo! Your great document comparing the button types should raise some designer eyebrows, there are simply too many variants of the same thing. I'm certain the variations can be reduced dramatically, so Consonant should be involved in this analysis. From my perspective, we can safely assume that we won't have 10 buttons one next to another to justify having so many different styles. Maybe there's a way to figure out the maximum number of buttons you have grouped together in a given area. That should be the number of supported styles. Looking at the document, you basically have two types of buttons - with or without border. The colors (text, border, background) then seem to vary wildly. You already mentioned that we're restricted by just a few authoring options - italics, bold, italics + bold, so my first suggestion is to increase the number of Express styles by defining additional classes supported by blocks that would influence the button styles. Although ideally, an author should not have to think which of the 10 variations they need to add, it should simply be contextual - in block X, a link that is italicized has a purple background, while in block Y, the same italicized link is hollow and just has a purple border. If you can figure out such a pattern, that would be ideal. You would gain consistency and make author's lives easier. |
Beta Was this translation helpful? Give feedback.
-
+1 to @overmyheadandbody and @mokimo. I think if you need all of them and some of the variants could have their styles set based on block context, that might be a win. As for overrides, it is a bit different with the current Bacom overrides that we have (they mostly have to do with I am sure you would think of backwards compatibility, good defaults, etc. but I can also see a nightmare of having to fix a disparity between Milo and Express buttons down the line and most of the content is authored for to utilize an override. |
Beta Was this translation helpful? Give feedback.
-
@mokimo , @overmyheadandbody & @JasonHowellSlavin @JasonHowellSlavin could you elaborate a little on the overrides that you have in Bacom? Just curious how you guys approached it. :) |
Beta Was this translation helpful? Give feedback.
-
@mokimo , @overmyheadandbody & @JasonHowellSlavin |
Beta Was this translation helpful? Give feedback.
-
Instead of adding the decoration value to the link it could be added to the display text with a The benefit of this would be that you see the The pipe and style token would be removed before the DOM is decorated, so that detail would not show up in button once rendered on a page. |
Beta Was this translation helpful? Give feedback.
Instead of adding the decoration value to the link it could be added to the display text with a
|
to separate the display text from the styling. Similar concept to how we apply alt text to svgs.The benefit of this would be that you see the
| st…