You're likely experiencing a styling issue with the "Current" state of the navigation link in Webflow. When a link points to the page you're on, Webflow automatically assigns it the Current class, which may have inherited a background style (like black) that appears after clicking.
1. Understand the "Current" Class in Webflow
- Webflow auto-generates a "Current" class for nav links that match the current page's URL.
- It only appears while editing the link on the live page it's linked to — otherwise, it’s hidden in the Designer.
2. Select the Correct Element and Page
- Go to the page where the issue appears. The nav link should now show the Current state in the selector dropdown.
- Click on the nav link in question. Confirm it shows as Nav Link Current or similar in the Selector dropdown.
3. Edit the "Current" State Styles
- With the Current state selected, check styles such as background color, text color, border, etc.
- If there's a black background, it’s likely set under the background property of the Current class.
- Remove or change the background color to match your intended design (e.g., transparent or theme color).
- Also verify Hover, Pressed, and Focused pseudo-states — any of these might be influencing the appearance.
4. Check for Interactions or Animations
- Go to the Interactions panel and see if any click triggers or page load actions are modifying button styles or backgrounds.
- A style added by an interaction could override what’s in the Designer if not reset properly.
5. Clear Unused Styles
- Sometimes you might have extra styles (e.g., custom classes or pseudo-classes like “Pressed”) that add unexpected formatting.
- Use the Style Manager (the broom icon) to prune unused classes or clean duplications.
Summary
You're seeing a black background on your nav button likely due to the "Current" class adding a style that overrides your default nav link appearance. To fix it, edit the Current state of the nav link directly from the page in question and adjust or remove the background color. Also, verify that no interactions or hover styles are interfering with the appearance.