Unverified Commit 80df534a authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

Issue #3310852 by e0ipso, isholgueras: Create a fancier widget selector with more context

parent 9ed76cd0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
  justify-content: flex-start;
}

.widget-type-selector--radios .form-type--radio {
.widget-type-selector--radios .form-type--radio,
.widget-type-selector--radios .form-type-radio {
  outline: 1px solid black;
  border-radius: 3px;
  min-width: 150px;
@@ -31,6 +32,7 @@
  grid-template-columns: 33.3% 33.3% 33.4%;
  padding: 5px 0;
  height: 100%;
  font-weight: normal;
}

.radio-details--status,
@@ -56,7 +58,7 @@

.radio-details--wrapper .radio-details--description {
  grid-area: 3 / 1 / span 1 / span 3;
  font-size: 0.75rem;
  font-size: 0.7rem;
  color: #666;
  line-height: 1rem;
  margin-bottom: 1rem;
+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ final class WidgetType extends ContentEntityBase implements WidgetTypeInterface
   * {@inheritdoc}
   */
  public function getDescription(): string {
    return $this->get('description')->value;
    return $this->get('description')->value ?? '';
  }

  /**