From 33b3263db7ddcd7ff5eec988ef5a3ff7e630029b Mon Sep 17 00:00:00 2001 From: Florian Rey Date: Sat, 8 Jun 2024 19:18:38 +0200 Subject: [PATCH] fix: Deprecate UnsetBorderTopBackgroundColor in favor of UnsetBorderTopBackground --- unset.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unset.go b/unset.go index 19d93370..1086e722 100644 --- a/unset.go +++ b/unset.go @@ -249,7 +249,15 @@ func (s Style) UnsetBorderBackground() Style { // UnsetBorderTopBackgroundColor removes the top border background color rule, // if set. +// +// Deprecated: This function simply calls Style.UnsetBorderTopBackground. func (s Style) UnsetBorderTopBackgroundColor() Style { + return s.UnsetBorderTopBackground() +} + +// UnsetBorderTopBackground removes the top border background color rule, +// if set. +func (s Style) UnsetBorderTopBackground() Style { s.unset(borderTopBackgroundKey) return s }