Honeycomb 13.0 migration guide

Package upgrade

Upgrading with npm

That's a one command story in here:

npm update @flixbus/honeycomb@latest --save

Upgrading from CDN

If Honeycomb is served to your application through the CDN you'll need to update the url providing the proper version part, like so:

<link rel="stylesheet" href="https://honeycomb.flixbus.com/dist/13.5.0/css/honeycomb.min.css"/>

Same applies to any partials you fetch from our CDN, e.g. if you need the honeycomb themes this would be:

<link rel="stylesheet" href="https://honeycomb.flixbus.com/dist/13.5.0/css/honeycomb-themes.min.css"/>

Breaking changes

Colors

Colors across themes were updated. Bellow is the list of design tokens changed their value per theme.

Flix

Token12.013.0
--flix-brand-primary-color#73d700#97d700
--flix-button-primary-color#a2e53f#97d700
--flix-header-bg-color#a2e53f#97d700
--flix-header-nav-bg-color-tablet#73d700#5cc500
--flix-icon-secondary-color#31a100#97d700

Flix Dark

Token12.013.0
--flix-brand-primary-color#73d700#97d700
--flix-ui-primary-color#73d700#97d700
--flix-button-primary-color#a2e53f#97d700
--flix-button-label-color#353535#252525
--flix-header-bg-color#0f5900#252525
--flix-header-nav-bg-color-tablet#0b4000#202020
--flix-icon-secondary-color#73d700#97d700
--flix-grayscale-0-color#252525#151515
--flix-grayscale-10-color#353535#252525
--flix-bg-primary-color#252525#151515
--flix-box-bg-color#353535#252525
--flix-highlight-color#136b00#0a3c00

Neptune

Token12.013.0
--flix-highlight-color#d4ecf5#aee9fc

Neptune Dark

Token12.013.0
--flix-header-bg-color#0f5900#252525
--flix-header-nav-bg-color-tablet#0b4000#202020
--flix-icon-secondary-color#00A6DE#ef782c
--flix-grayscale-0-color#252525#151515
--flix-grayscale-10-color#353535#252525
--flix-bg-primary-color#252525#151515
--flix-box-bg-color#353535#252525
--flix-highlight-color#d4ecf5#aee9fc

Kamil

Token12.013.0
--flix-highlight-color#deeaff#e3ebfa

Kamil Dark

Token12.013.0
--flix-header-bg-color#0f5900#252525
--flix-header-nav-bg-color-tablet#0b4000#202020
--flix-icon-secondary-color#3EB5F1#0597dd
--flix-grayscale-0-color#252525#151515
--flix-grayscale-10-color#353535#252525
--flix-bg-primary-color#252525#151515
--flix-box-bg-color#353535#252525

Button line breaks

Button components with very long text content will break line instead of cropping the text.

Select

In order to support custom icons and inline labels for select components we were forced to slightly adjust its HTML markup. In ver. 13 flix-select__field element need to be place inside of flix-select__container, similarly to how things are don for the text inputs.

Before:

<div class="flix-select">
    <label class="flix-select__label flix-label" for="select-simple">Countries</label>
    <select id="select-simple" class="flix-select__field">
        <option value="1">Germany</option>
        <option value="2">France</option>
        <option value="3">Austria</option>
        <option value="4">The Netherlands</option>
    </select>
</div>

Version 13:

<div class="flix-select">
    <label class="flix-select__label flix-label" for="select-simple">Countries</label>
    
    <div class="flix-select__container">
        <select id="select-simple" class="flix-select__field">
            <option value="1">Germany</option>
            <option value="2">France</option>
            <option value="3">Austria</option>
            <option value="4">The Netherlands</option>
        </select>
    </div>
</div>

Form row

Default bottom margin for this component has changed from spacing-4 to spacing-2. Also flix-form-row components will now preserve margins when used within the grid columns or other wrappers. Please make sure to apply flix-form-row--spase-flush for the elements that do not need these margins, e.g. last form fields in the forms.

Flag assets

Honeycomb ver. 13 removes all flag assets from its CDN, as a replacement since ver. 12 we're offering dedicated flag libraries, please follow these links for more info:

If you still require using old flag assets you should stick to CDN links for older versions (12 and bellow).