private static string ValueToClass(this ModalDecorations value) { return(value switch { NoDecoration => string.Empty, _ => value.ToString().ToLower(), });
public static string ToClass(this ModalDecorations decorations) { var classes = _allValues .Select(v => { return(decorations.HasFlag(v) ? v.ValueToClass() : string.Empty); }); return(classes.ToClass()); }