diff --git a/Js.php b/Js.php index 1a7a2bd..b21a038 100644 --- a/Js.php +++ b/Js.php @@ -27,6 +27,6 @@ class Js extends _P { */ final protected function _toHtml() {return df_js(__CLASS__, 'main', [ 'countries' => df_country_codes_allowed() - ,'utils' => df_asset_create(df_asset_name('Df_Phone::lib/js/utils.js'))->getUrl() - ]) . df_link_inline(df_asset_name('Df_Phone::lib/css/main.css'));} + ,'utils' => df_asset_create('Df_Phone::lib/js/utils.js')->getUrl() + ]) . df_cc_br(df_link_inline('Df_Phone::lib/css/main.css', 'Df_Phone::main.css'));} } \ No newline at end of file diff --git a/composer.json b/composer.json index b692539..dd26279 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/phone" - ,"version": "1.0.9" + ,"version": "1.0.10" ,"description": "A telephone numbers handling library for my Magento 2 extensions." ,"type": "magento2-module" ,"homepage": "https://github.com/mage2pro/phone" diff --git a/view/base/web/main.less b/view/base/web/main.less new file mode 100644 index 0000000..bbd5af9 --- /dev/null +++ b/view/base/web/main.less @@ -0,0 +1,6 @@ +// 2017-09-09 +// Note 1. +// `.mage-error` has `margin-top: 7px` by default. +// But a lesser margin looks better for `jackocnr/intl-tel-input`. +// Note 2. I use `div.mage-error[generated]` instead of `.mage-error` to overcome the built-in M2 rule. +.df-phone-addon + div.mage-error[generated] {margin-top: 3px;} \ No newline at end of file