Some races, for instance a kobold, have a disadvantage of Sunlight Sensitivity:
Sunlight Sensitivity. While in sunlight, the kobold has disadvantage on attack rolls, as well as on Wisdom (Perception) checks that rely on sight.
The Totem Barbarian gains a feature called "Aspect of the Beast" at level 6. The player can choose as animal as a totem and gain some aspect of them.
The aspect of "Eagle" states:
You gain the eyesight of an eagle. You can see up to 1 mile away with no difficulty, able to discern even fine details as though looking at something no more than 100 feet away from you. Additionally, dim light doesn’t impose disadvantage on your Wisdom (Perception) checks.
So how would this play out?
By nature, the kobold has disadvantage in sunlight (both being and seeing things within). But the Barbarian feature clearly states they can see "...up to 1 mile away with no difficulty".
Would the "no difficulty" cancel out the issue with seeing something in the sunlight? Specifically, would they be able to perceive (up to a mile) without a disadvantage?
Note: I'm ignoring the factor of the kobold BEING in the sunlight as they can be in a building, under an umbrella, whatever. I'm specifically curious about how well they can see.
To give a practical example: A Barbarian kobold is on an island; under the canopy of trees just past the shoreline. A ship is anchored a half-mile off shore and from which, a small boat has been launched. The kobold peers across the white, sandy beach and the clear waters to see who is on the small boat that is approaching.
The kobold is not in sunlight, but what he wants to see is. It is less than a mile, is a clear shot, and is something that would call for a Perception check.