Skip to content

Releases: felleslosninger/minid-web-components

v0.1.3

11 Jun 14:25
e73b4b8

Choose a tag to compare

Patch Changes

  • d1e95d6: Add mid-language-selector component for locale switching, using Designsystemet dropdown styling

v0.1.2

11 Jun 07:33
b39bde4

Choose a tag to compare

Patch Changes

  • 2a9c51b: Add color variants to mid-validation-message; accessibility improvements in mid-textfield

    New features and fixes

    • mid-validation-message has a new color property (danger | success | warning | info) that controls icon, text color, and aria-live behavior. Defaults to danger for backwards compatibility
    • mid-textfield description element now uses aria-hidden="true" instead of a data-field attribute; removed stray data-field from validation paragraph

v0.1.1

10 Jun 09:43
e780da0

Choose a tag to compare

Patch Changes

  • 13f6f5c: Add alertdialog support to mid-dialog; add type mismatch validation to mid-textfield

    Fixes and improvements

    • mid-dialog has a new alertdialog boolean attribute that switches the dialog role to alertdialog and focuses it on open, for blocking dialogs requiring immediate user attention
    • mid-dialog close button now has a translated aria-label in all supported languages (nb, nn, se, en)
    • mid-textfield now validates email and url input types using a typeMismatchValidator, surfacing native browser type-mismatch errors through the component's validation API

v0.1.0

03 Jun 13:55
ecdbbb1

Choose a tag to compare

Minor Changes

  • 0af8e9b: Add i18n language support across components; new alert aria-live control; bundle styles.css and theme.css as separate CSS package entrypoints

    New features

    • mid-textfield, mid-search, and mid-phone-input now automatically pick up the page language (nb, nn, se, en) for built-in labels such as "Clear", "Show password", "Hide password", and "Open country selector"
    • New translations.ts utility — override or extend built-in strings per language with registerTranslations()
    • mid-alert has a new arialive attribute ("polite", "assertive", "off") to control when screen readers announce alert content
    • mid-phone-input has a new autocomplete attribute ("tel" / "tel-national") to control how browser autofill applies the country prefix
    • ./styles now maps to dist/styles.css and ./theme to dist/theme.css as separate CSS package entrypoints. Applications importing these paths should verify they are getting the expected file.

    Bug fixes

    • mid-textfield clear and show/hide password buttons are now reachable by keyboard (tab order)
    • mid-code-input placeholder circle styling moved to shadow DOM CSS, fixing rendering when Tailwind base styles are not available