Skip to content

21st of June

This is a summary of Front-end Forum held on Wednesday the 21st of June, 2023.

Forum summary

This time the forum gathered about 6 persons physically in different meeting rooms around the fourth floor (since Samhandlingssonen is undergoing heavy reconstruction), and around 10 on Teams. Thanks for showing up, do spread the knowledge and the word about Front-end Forum.

Topics that we covered during this session were:

  • Core
    • Will have a huge release soon, changing a lot (about 90% done)
    • core-global-css will go away (it caused more pain than joy)
    • core-utilitie-css will go away (use tokens instead)
    • The stack of libraries will be rebranded as builders-tokens, builders-icons, and so on, so you can start using them gradually.
    • Tokens to be renamed and restructured for the better
    • Many components rewritten, many as compound components
  • Platform
    • Tracking can now be customized in some of the parts, directly from the CMS
    • A new A/B-test component exists, that can be used from the CMS. Co-written by Sales and Builders. Beautiful example on how we can move things forward, together.
  • CSS - the second class citizen?
    • Over time, larger CSS-files tend to become exponentially more complex.
    • Usually, giving some extra love to CSS you could do things more elegant.
    • We discussed where to put media-queries and saw examples on when they are added within each class, causing you to scroll past loads of queries to get an overview of the structure. A pattern to put these together at the bottom was discussed.
    • If you have examples on "bad" CSS, reach out and we could have a look at it together.
    • As a rule, "!important" should never be used, being more specific in your selector is enough.
    • Here's a pretty good explanation on specificity and how that works.
    • Short-handing properties and values is usually easier to overview (font: bold 1rem Arial; versus specifying each individual property, font-weight, font-size, font-family).
    • Some good inspiration on layout best-practices when it comes to CSS by Builder's Eirik.
  • Shared/local libraries
    • Refrain from just importing Core-components and add some sprinkles to it, then use that (MyComponent) in your code. Rather import Core in your code, and extend it with custom capabilities directly in your app. Makes for easier maintenance.
    • Have shared libraries you wanna show? Reach out and we can look at it together.
  • Links

And that's it for the summer. We have a form out asking for your input around arenas in general and Front-end Forum specifically. We'll see each other in the autumn, hopefully with a new and improved Samhandlingssonen ("collaboration zone") and updated format.

Closing words

Thank you for participating! Spread the news about Front-end Forum to others who might benefit from it. Agenda posted weekly before each forum, in #frontend on Slack.

Take a dive into the forum archive if you missed a forum.

Want to show something? Reach out using #frontend

For Core-specific issues/questions, use #core-components

You can still reach Team Builders for general questions on #team-builders