Releases: felleslosninger/minid-web-components
Releases · felleslosninger/minid-web-components
v0.1.3
v0.1.2
Patch Changes
-
2a9c51b: Add color variants to
mid-validation-message; accessibility improvements inmid-textfieldNew features and fixes
mid-validation-messagehas a newcolorproperty (danger|success|warning|info) that controls icon, text color, andaria-livebehavior. Defaults todangerfor backwards compatibilitymid-textfielddescription element now usesaria-hidden="true"instead of adata-fieldattribute; removed straydata-fieldfrom validation paragraph
v0.1.1
Patch Changes
-
13f6f5c: Add alertdialog support to
mid-dialog; add type mismatch validation tomid-textfieldFixes and improvements
mid-dialoghas a newalertdialogboolean attribute that switches the dialog role toalertdialogand focuses it on open, for blocking dialogs requiring immediate user attentionmid-dialogclose button now has a translatedaria-labelin all supported languages (nb, nn, se, en)mid-textfieldnow validatesemailandurlinput types using atypeMismatchValidator, surfacing native browser type-mismatch errors through the component's validation API
v0.1.0
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, andmid-phone-inputnow 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.tsutility — override or extend built-in strings per language withregisterTranslations() mid-alerthas a newarialiveattribute ("polite","assertive","off") to control when screen readers announce alert contentmid-phone-inputhas a newautocompleteattribute ("tel"/"tel-national") to control how browser autofill applies the country prefix./stylesnow maps todist/styles.cssand./themetodist/theme.cssas separate CSS package entrypoints. Applications importing these paths should verify they are getting the expected file.
Bug fixes
mid-textfieldclear and show/hide password buttons are now reachable by keyboard (tab order)mid-code-inputplaceholder circle styling moved to shadow DOM CSS, fixing rendering when Tailwind base styles are not available