diff --git a/assets/css/cwby-component-disabled.css b/assets/css/cwby-component-disabled.css new file mode 100644 index 00000000..26a6806b --- /dev/null +++ b/assets/css/cwby-component-disabled.css @@ -0,0 +1,4 @@ +.gc-component-disabled { + pointer-events: none; + opacity: 0.5; +} diff --git a/assets/css/cwby-component-disabled.min.css b/assets/css/cwby-component-disabled.min.css new file mode 100644 index 00000000..c51c82a3 --- /dev/null +++ b/assets/css/cwby-component-disabled.min.css @@ -0,0 +1 @@ +.gc-component-disabled{pointer-events:none;opacity:.5} \ No newline at end of file diff --git a/includes/classes/admin/mapping-wizard.php b/includes/classes/admin/mapping-wizard.php index 16d7f7b7..ba0dd4e8 100644 --- a/includes/classes/admin/mapping-wizard.php +++ b/includes/classes/admin/mapping-wizard.php @@ -540,6 +540,8 @@ public function map_template() { } if ( $template_has_repeatable_fields && ! $is_acf_pro_installed ) { + \GatherContent\Importer\enqueue_style('cwby-component-disabled', 'cwby-component-disabled'); + $notes .= $this->view( 'graceful-degradation', array( 'additionalClass' => 'gc-component-disabled' ), diff --git a/includes/views/graceful-degradation.php b/includes/views/graceful-degradation.php index df8f4298..03434d0d 100644 --- a/includes/views/graceful-degradation.php +++ b/includes/views/graceful-degradation.php @@ -2,9 +2,3 @@